Fix T101928: transform operator properties saving wrong snap values
The check for the flags should be `== 0` since they are describing a negative state. Thanks to @lone_noel for pointing out the error.
This commit is contained in:
parent
6165395927
commit
425e7ca342
Notes:
blender-bot
2023-02-14 08:45:09 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3 Referenced by issue #101928, Info editor reports wrong transform options
|
@ -1594,9 +1594,9 @@ void saveTransform(bContext *C, TransInfo *t, wmOperator *op)
|
|||
RNA_enum_set(op->ptr, "snap_target", t->tsnap.source_select);
|
||||
|
||||
eSnapTargetSelect target = t->tsnap.target_select;
|
||||
RNA_boolean_set(op->ptr, "use_snap_self", (target & SCE_SNAP_TARGET_NOT_ACTIVE) != 0);
|
||||
RNA_boolean_set(op->ptr, "use_snap_edit", (target & SCE_SNAP_TARGET_NOT_EDITED) != 0);
|
||||
RNA_boolean_set(op->ptr, "use_snap_nonedit", (target & SCE_SNAP_TARGET_NOT_NONEDITED) != 0);
|
||||
RNA_boolean_set(op->ptr, "use_snap_self", (target & SCE_SNAP_TARGET_NOT_ACTIVE) == 0);
|
||||
RNA_boolean_set(op->ptr, "use_snap_edit", (target & SCE_SNAP_TARGET_NOT_EDITED) == 0);
|
||||
RNA_boolean_set(op->ptr, "use_snap_nonedit", (target & SCE_SNAP_TARGET_NOT_NONEDITED) == 0);
|
||||
RNA_boolean_set(
|
||||
op->ptr, "use_snap_selectable", (target & SCE_SNAP_TARGET_ONLY_SELECTABLE) != 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue