diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-02 08:39:20 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-02 08:39:20 +0300 |
commit | dce12293d0dbaf0ae1e2ea90dc46ae7e40763f31 (patch) | |
tree | b5d8d133e5b6fc150efd9389100882da28cd11f3 /source/blender/editors/mesh | |
parent | 0e7a592c3c16bfb77ca9410a49d00d416406bdec (diff) |
WM: generalize tool property initialization
Prepare for storing different kinds of properties in tools.
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r-- | source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c b/source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c index 0f3046f19cb..5212d36a5a2 100644 --- a/source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c +++ b/source/blender/editors/mesh/editmesh_extrude_spin_gizmo.c @@ -266,7 +266,7 @@ static void gizmo_mesh_spin_init_draw_prepare( { PointerRNA ptr; bToolRef *tref = WM_toolsystem_ref_from_context((bContext *)C); - WM_toolsystem_ref_properties_ensure(tref, ggd->data.ot_spin, &ptr); + WM_toolsystem_ref_properties_ensure_from_operator(tref, ggd->data.ot_spin, &ptr); const int axis_flag = RNA_property_enum_get(&ptr, ggd->data.ot_spin_gizmo_axis_prop); for (int i = 0; i < 4; i++) { bool hide = (axis_flag & (1 << i)) == 0; @@ -410,7 +410,7 @@ static void gizmo_mesh_spin_init_refresh(const bContext *C, wmGizmoGroup *gzgrou { PointerRNA ptr; bToolRef *tref = WM_toolsystem_ref_from_context((bContext *)C); - WM_toolsystem_ref_properties_ensure(tref, ggd->data.ot_spin, &ptr); + WM_toolsystem_ref_properties_ensure_from_operator(tref, ggd->data.ot_spin, &ptr); const int axis_flag = RNA_property_enum_get(&ptr, ggd->data.ot_spin_gizmo_axis_prop); for (int i = 0; i < ARRAY_SIZE(ggd->gizmos.icon_button); i++) { for (int j = 0; j < 2; j++) { |