[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [14914] branches/apricot/source/blender/ src/transform_snap.c: mesh check for duplis, when snapping
Martin Poirier
theeth at yahoo.com
Wed May 21 15:43:42 CEST 2008
Revision: 14914
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=14914
Author: theeth
Date: 2008-05-21 15:43:39 +0200 (Wed, 21 May 2008)
Log Message:
-----------
mesh check for duplis, when snapping
Modified Paths:
--------------
branches/apricot/source/blender/src/transform_snap.c
Modified: branches/apricot/source/blender/src/transform_snap.c
===================================================================
--- branches/apricot/source/blender/src/transform_snap.c 2008-05-21 12:57:22 UTC (rev 14913)
+++ branches/apricot/source/blender/src/transform_snap.c 2008-05-21 13:43:39 UTC (rev 14914)
@@ -1079,14 +1079,16 @@
for(dupli_ob = lb->first; dupli_ob; dupli_ob = dupli_ob->next)
{
Object *ob = dupli_ob->ob;
- DerivedMesh *dm = mesh_get_derived_final(ob, CD_MASK_BAREMESH);
- int val;
-
- val = snapDerivedMesh(ob, dm, dupli_ob->mat, ray_start, ray_normal, mval, loc, no, dist, &depth);
-
- retval = retval || val;
-
- dm->release(dm);
+ if (ob->type == OB_MESH) {
+ DerivedMesh *dm = mesh_get_derived_final(ob, CD_MASK_BAREMESH);
+ int val;
+
+ val = snapDerivedMesh(ob, dm, dupli_ob->mat, ray_start, ray_normal, mval, loc, no, dist, &depth);
+
+ retval = retval || val;
+
+ dm->release(dm);
+ }
}
free_object_duplilist(lb);
More information about the Bf-blender-cvs
mailing list