From c09ed7769715932df9294ab38e7a03de4fcdf471 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 25 Aug 2010 01:20:50 +0000 Subject: [PATCH] =?UTF-8?q?bugfix/aviodance=20for=20[#23488]=20bpy.types.T?= =?UTF-8?q?exture.type=20don=C2=B4t=20update=20the=20parameters=20of=20tex?= =?UTF-8?q?ture=20bpy.data.textures.new()=20now=20has=20a=20type=20argumen?= =?UTF-8?q?t=20since=20changing=20the=20type=20after=20forces=20the=20hack?= =?UTF-8?q?y=20use=20of=20recast=5Ftype().?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- release/scripts/io/import_scene_3ds.py | 9 ++------- release/scripts/io/import_scene_obj.py | 11 ++++------- source/blender/makesrna/intern/rna_main_api.c | 6 ++++-- 3 files changed, 10 insertions(+), 16 deletions(-) diff --git a/release/scripts/io/import_scene_3ds.py b/release/scripts/io/import_scene_3ds.py index f956f29b0e7..95da2637ed5 100644 --- a/release/scripts/io/import_scene_3ds.py +++ b/release/scripts/io/import_scene_3ds.py @@ -266,12 +266,10 @@ def read_string(file): s += struct.unpack('id.us--; @@ -766,7 +766,7 @@ void RNA_def_main_curves(BlenderRNA *brna, PropertyRNA *cprop) RNA_def_function_ui_description(func, "Add a new curve to the main database"); parm= RNA_def_string(func, "name", "Curve", 0, "", "New name for the datablock."); RNA_def_property_flag(parm, PROP_REQUIRED); - parm= RNA_def_enum(func, "type", object_type_curve_items, 0, "Type", "The type of curve object to add"); + parm= RNA_def_enum(func, "type", object_type_curve_items, 0, "Type", "The type of curve to add"); RNA_def_property_flag(parm, PROP_REQUIRED); /* return type */ parm= RNA_def_pointer(func, "curve", "Curve", "", "New curve datablock."); @@ -841,6 +841,8 @@ void RNA_def_main_textures(BlenderRNA *brna, PropertyRNA *cprop) RNA_def_function_ui_description(func, "Add a new texture to the main database"); parm= RNA_def_string(func, "name", "Texture", 0, "", "New name for the datablock."); RNA_def_property_flag(parm, PROP_REQUIRED); + parm= RNA_def_enum(func, "type", texture_type_items, 0, "Type", "The type of texture to add"); + RNA_def_property_flag(parm, PROP_REQUIRED); /* return type */ parm= RNA_def_pointer(func, "texture", "Texture", "", "New texture datablock."); RNA_def_function_return(func, parm);