Metaball editmode: when editing a linked duplicate, hiding a ball caused
a crash.
This commit is contained in:
Ton Roosendaal
2006-08-09 08:53:21 +00:00
parent a5d0af3b4f
commit 6e4b28968a

View File

@@ -301,6 +301,8 @@ Object *find_basis_mball(Object *basis)
/* if bob object is in edit mode, then dynamic list of all MetaElems
* is stored in editelems */
if(ob==G.obedit) ml= editelems.first;
/* keep track of linked data too! */
else if(G.obedit && G.obedit->data==ob->data) ml= editelems.first;
/* if bob object is in object mode */
else ml= ((MetaBall*)ob->data)->elems.first;
}