diff options
author | Stanislav Blinov <radcapricorn> | 2020-01-09 15:01:06 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2020-01-09 15:02:17 +0300 |
commit | 2eafae4e393d508d59ff5ab81072e61360c81e6f (patch) | |
tree | 7837bd5787a0bb43f4b86dd86c3d426239a09584 /source/blender/windowmanager | |
parent | 002f5b826c7c0b11a4f94de6ce6a88cf849c05c5 (diff) |
Fix T71295: Duplicate macro faulty after rotation
As per T71295, the "duplicate+move" macro fails to store TRANSFORM_OT_translate properties once it's been used with rotation. I believe this is due to it being re-initialized with incorrect properties, reading bogus values from stored TRANSFORM_OT_rotate properties.
Force storing of actual operator id name instead of one defined in the macro, which in turn forces a name mismatch on initialization.
Reviewed By: #modeling, campbellbarton
Maniphest Tasks: T71295
Differential Revision: https://developer.blender.org/D6413
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index 947babea24f..98ed908377c 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -1363,7 +1363,7 @@ bool WM_operator_last_properties_store(wmOperator *op) IDP_GROUP, &(IDPropertyTemplate){0}, "wmOperatorProperties"); } IDProperty *idp_macro = IDP_CopyProperty(opm->properties); - STRNCPY(idp_macro->name, opm->idname); + STRNCPY(idp_macro->name, opm->type->idname); IDP_ReplaceInGroup(op->type->last_properties, idp_macro); } } |