diff options
author | Ton Roosendaal <ton@blender.org> | 2005-11-05 20:14:55 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-11-05 20:14:55 +0300 |
commit | 1d852750365a137fc1b18bdb45e186ffb0387640 (patch) | |
tree | a2856c562798a282ff91f4b4d94f2a0c8731ec08 /source/blender/src/butspace.c | |
parent | f12697395b103c8cbf1817899eaaabea6ac72fbe (diff) |
Fix #3256
DXF: when an error message occurs during read, the main call returned
without clearing the used global vars... causing crash on calling again.
ALso: added warning when trying to assign a taper or bevel using Object
itself. (report from opengl tracker :)
Diffstat (limited to 'source/blender/src/butspace.c')
-rw-r--r-- | source/blender/src/butspace.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/source/blender/src/butspace.c b/source/blender/src/butspace.c index 0fc59218f03..bb6dc671e14 100644 --- a/source/blender/src/butspace.c +++ b/source/blender/src/butspace.c @@ -147,31 +147,6 @@ void test_obpoin_but(char *name, ID **idpp) *idpp= 0; } -void test_obcurpoin_but(char *name, ID **idpp) -{ - ID *id; - - if(idpp == (ID **)&(emptytex.object)) { - error("You must add a texture first"); - *idpp= 0; - return; - } - - id= G.main->object.first; - while(id) { - if( strcmp(name, id->name+2)==0 ) { - if (((Object *)id)->type != OB_CURVE) { - error ("Bevel object must be a curve"); - break; - } - *idpp= id; - return; - } - id= id->next; - } - *idpp= 0; -} - void test_meshpoin_but(char *name, ID **idpp) { ID *id; |