Merge branch 'master' into blender2.8
This commit is contained in:
commit
5843de3251
|
@ -86,6 +86,7 @@
|
|||
|
||||
#include "UI_interface.h"
|
||||
|
||||
#include "ED_object.h"
|
||||
#include "ED_mesh.h"
|
||||
#include "ED_node.h"
|
||||
#include "ED_paint.h"
|
||||
|
@ -5661,7 +5662,7 @@ static Image *proj_paint_image_create(wmOperator *op, Main *bmain)
|
|||
|
||||
static bool proj_paint_add_slot(bContext *C, wmOperator *op)
|
||||
{
|
||||
Object *ob = CTX_data_active_object(C);
|
||||
Object *ob = ED_object_active_context(C);
|
||||
Scene *scene = CTX_data_scene(C);
|
||||
Material *ma;
|
||||
Image *ima = NULL;
|
||||
|
@ -5726,7 +5727,7 @@ static int texture_paint_add_texture_paint_slot_invoke(bContext *C, wmOperator *
|
|||
{
|
||||
char imagename[MAX_ID_NAME - 2];
|
||||
Main *bmain = CTX_data_main(C);
|
||||
Object *ob = CTX_data_active_object(C);
|
||||
Object *ob = ED_object_active_context(C);
|
||||
Material *ma = give_current_material(ob, ob->actcol);
|
||||
int type = RNA_enum_get(op->ptr, "type");
|
||||
|
||||
|
|
Loading…
Reference in New Issue