[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54666] trunk/blender/source/blender/ editors/object/object_transform.c: fix for apply rotation/ location failing for surface object types (were recognized as 2d curves).

Campbell Barton ideasman42 at gmail.com
Tue Feb 19 15:19:53 CET 2013


Revision: 54666
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54666
Author:   campbellbarton
Date:     2013-02-19 14:19:53 +0000 (Tue, 19 Feb 2013)
Log Message:
-----------
fix for apply rotation/location failing for surface object types (were recognized as 2d curves).

Modified Paths:
--------------
    trunk/blender/source/blender/editors/object/object_transform.c

Modified: trunk/blender/source/blender/editors/object/object_transform.c
===================================================================
--- trunk/blender/source/blender/editors/object/object_transform.c	2013-02-19 14:14:37 UTC (rev 54665)
+++ trunk/blender/source/blender/editors/object/object_transform.c	2013-02-19 14:19:53 UTC (rev 54666)
@@ -424,7 +424,7 @@
 
 			cu = ob->data;
 
-			if (!(cu->flag & CU_3D) && (apply_rot || apply_loc)) {
+			if (((ob->type == OB_CURVE) && !(cu->flag & CU_3D)) && (apply_rot || apply_loc)) {
 				BKE_report(reports, RPT_ERROR,
 				           "Neither rotation nor location could be applied to a 2D curve, doing nothing");
 				change = 0;




More information about the Bf-blender-cvs mailing list