Fix T62756, T62131: moving stencil texture fails after moving stencil mask
This commit is contained in:
parent
b33005c1f4
commit
f786861820
Notes:
blender-bot
2023-02-14 06:23:08 +01:00
Referenced by issue #62756, image texture mapped as stencil in texture paint mode unable to be adjusted after using a texture mask Referenced by issue #62131, Painting mode stencil doesn`t move until Alt+RMB
|
@ -815,8 +815,11 @@ static void BRUSH_OT_stencil_control(wmOperatorType *ot)
|
|||
/* flags */
|
||||
ot->flag = 0;
|
||||
|
||||
RNA_def_enum(ot->srna, "mode", stencil_control_items, STENCIL_TRANSLATE, "Tool", "");
|
||||
RNA_def_enum(ot->srna, "texmode", stencil_texture_items, STENCIL_PRIMARY, "Tool", "");
|
||||
PropertyRNA *prop;
|
||||
prop = RNA_def_enum(ot->srna, "mode", stencil_control_items, STENCIL_TRANSLATE, "Tool", "");
|
||||
RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
|
||||
prop = RNA_def_enum(ot->srna, "texmode", stencil_texture_items, STENCIL_PRIMARY, "Tool", "");
|
||||
RNA_def_property_flag(prop, PROP_HIDDEN | PROP_SKIP_SAVE);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue