Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorKen Hughes <khughes@pacific.edu>2005-10-26 04:54:53 +0400
committerKen Hughes <khughes@pacific.edu>2005-10-26 04:54:53 +0400
commitb970e55df25b9f4bd79d6acce194c857df3403bb (patch)
tree9ef18e747342fc2911c959502b5ca581642a324e /source
parentded4709a9d116a7e9ad1a91937e445154474118d (diff)
fix access of pointer before its assigned
Diffstat (limited to 'source')
-rw-r--r--source/blender/src/drawobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c
index 3f7b44361c1..85c6eecbd4d 100644
--- a/source/blender/src/drawobject.c
+++ b/source/blender/src/drawobject.c
@@ -3589,9 +3589,9 @@ void draw_object(Base *base)
break;
case OB_CURVE:
case OB_SURF:
+ cu= ob->data;
/* still needed for curves hidden in other layers. depgraph doesnt handle that yet */
if (cu->disp.first==NULL) makeDispListCurveTypes(ob, 0);
- cu= ob->data;
if(ob==G.obedit) {
drawnurb(ob, editNurb.first, dt);