[Bf-blender-cvs] [0c829e8240e] master: Fix T60709: Apply Object Transform does nothing by default

Jacques Lucke noreply at git.blender.org
Mon Jan 21 13:44:22 CET 2019


Commit: 0c829e8240eebd7ce4ed9d61f8682c0d6bf534f4
Author: Jacques Lucke
Date:   Mon Jan 21 13:43:16 2019 +0100
Branches: master
https://developer.blender.org/rB0c829e8240eebd7ce4ed9d61f8682c0d6bf534f4

Fix T60709: Apply Object Transform does nothing by default

===================================================================

M	source/blender/editors/object/object_transform.c

===================================================================

diff --git a/source/blender/editors/object/object_transform.c b/source/blender/editors/object/object_transform.c
index a30bc60eba6..2c85963ff17 100644
--- a/source/blender/editors/object/object_transform.c
+++ b/source/blender/editors/object/object_transform.c
@@ -786,9 +786,9 @@ void OBJECT_OT_transform_apply(wmOperatorType *ot)
 	/* flags */
 	ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
 
-	RNA_def_boolean(ot->srna, "location", 0, "Location", "");
-	RNA_def_boolean(ot->srna, "rotation", 0, "Rotation", "");
-	RNA_def_boolean(ot->srna, "scale", 0, "Scale", "");
+	RNA_def_boolean(ot->srna, "location", true, "Location", "");
+	RNA_def_boolean(ot->srna, "rotation", true, "Rotation", "");
+	RNA_def_boolean(ot->srna, "scale", true, "Scale", "");
 	RNA_def_boolean(ot->srna, "properties", true, "Apply Properties",
 	                "Modify properties such as curve vertex radius, font size and bone envelope");
 }



More information about the Bf-blender-cvs mailing list