svn merge ^/trunk/blender -r43676:43685

This commit is contained in:
2012-01-24 22:44:48 +00:00
7 changed files with 16 additions and 5 deletions

View File

@@ -241,7 +241,7 @@ class CyclesCamera_PT_dof(CyclesButtonsPanel, Panel):
class Cycles_PT_context_material(CyclesButtonsPanel, Panel): class Cycles_PT_context_material(CyclesButtonsPanel, Panel):
bl_label = "Surface" bl_label = ""
bl_context = "material" bl_context = "material"
bl_options = {'HIDE_HEADER'} bl_options = {'HIDE_HEADER'}

View File

@@ -61,6 +61,8 @@ class NODE_HT_header(Header):
if snode.shader_type == 'WORLD': if snode.shader_type == 'WORLD':
layout.template_ID(scene, "world", new="world.new") layout.template_ID(scene, "world", new="world.new")
if snode_id:
layout.prop(snode_id, "use_nodes")
elif snode.tree_type == 'TEXTURE': elif snode.tree_type == 'TEXTURE':
layout.prop(snode, "texture_type", text="", expand=True) layout.prop(snode, "texture_type", text="", expand=True)

View File

@@ -1127,6 +1127,9 @@ static int distribute_threads_init_data(ParticleThread *threads, Scene *scene, D
fprintf(stderr,"Particle distribution error: Nothing to emit from!\n"); fprintf(stderr,"Particle distribution error: Nothing to emit from!\n");
if(dm != finaldm) dm->release(dm); if(dm != finaldm) dm->release(dm);
BLI_kdtree_free(tree);
return 0; return 0;
} }

View File

@@ -169,6 +169,7 @@ static void node_area_listener(ScrArea *sa, wmNotifier *wmn)
/* note, ED_area_tag_refresh will re-execute compositor */ /* note, ED_area_tag_refresh will re-execute compositor */
SpaceNode *snode= sa->spacedata.first; SpaceNode *snode= sa->spacedata.first;
int type= snode->treetype; int type= snode->treetype;
short shader_type = snode->shaderfrom;
/* preview renders */ /* preview renders */
switch(wmn->category) { switch(wmn->category) {
@@ -214,6 +215,11 @@ static void node_area_listener(ScrArea *sa, wmNotifier *wmn)
ED_area_tag_refresh(sa); ED_area_tag_refresh(sa);
} }
break; break;
case NC_WORLD:
if(type==NTREE_SHADER && shader_type==SNODE_SHADER_WORLD) {
ED_area_tag_refresh(sa);
}
break;
case NC_OBJECT: case NC_OBJECT:
if(type==NTREE_SHADER) { if(type==NTREE_SHADER) {
if(wmn->data==ND_OB_SHADING) if(wmn->data==ND_OB_SHADING)

View File

@@ -4746,7 +4746,7 @@ ParameterList *RNA_parameter_list_create(ParameterList *parms, PointerRNA *UNUSE
case PROP_STRING: { case PROP_STRING: {
const char *defvalue= ((StringPropertyRNA*)parm)->defaultvalue; const char *defvalue= ((StringPropertyRNA*)parm)->defaultvalue;
if(defvalue && defvalue[0]) if(defvalue && defvalue[0])
memcpy(data, &defvalue, size); BLI_strncpy(data, defvalue, size);
break; break;
} }
case PROP_POINTER: case PROP_POINTER:

View File

@@ -643,7 +643,7 @@ void RNA_api_object(StructRNA *srna)
parm= RNA_def_enum(func, "type", mesh_dm_info_items, 0, "", "Modifier settings to apply"); parm= RNA_def_enum(func, "type", mesh_dm_info_items, 0, "", "Modifier settings to apply");
RNA_def_property_flag(parm, PROP_REQUIRED); RNA_def_property_flag(parm, PROP_REQUIRED);
/* weak!, no way to return dynamic string type */ /* weak!, no way to return dynamic string type */
parm= RNA_def_string(func, "result", "result", 16384, "result", ""); parm= RNA_def_string(func, "result", "", 16384, "result", "");
RNA_def_property_flag(parm, PROP_THICK_WRAP); /* needed for string return value */ RNA_def_property_flag(parm, PROP_THICK_WRAP); /* needed for string return value */
RNA_def_function_output(func, parm); RNA_def_function_output(func, parm);
#endif /* NDEBUG */ #endif /* NDEBUG */

View File

@@ -2166,7 +2166,7 @@ static void WM_OT_collada_export(wmOperatorType *ot)
ot->exec= wm_collada_export_exec; ot->exec= wm_collada_export_exec;
ot->poll= WM_operator_winactive; ot->poll= WM_operator_winactive;
WM_operator_properties_filesel(ot, FOLDERFILE|COLLADAFILE, FILE_BLENDER, FILE_SAVE, WM_FILESEL_FILEPATH); WM_operator_properties_filesel(ot, FOLDERFILE|COLLADAFILE, FILE_BLENDER, FILE_SAVE, WM_FILESEL_FILEPATH, FILE_DEFAULTDISPLAY);
RNA_def_boolean(ot->srna, "selected", 0, "Export only selected", RNA_def_boolean(ot->srna, "selected", 0, "Export only selected",
"Export only selected elements"); "Export only selected elements");
} }
@@ -2198,7 +2198,7 @@ static void WM_OT_collada_import(wmOperatorType *ot)
ot->exec= wm_collada_import_exec; ot->exec= wm_collada_import_exec;
ot->poll= WM_operator_winactive; ot->poll= WM_operator_winactive;
WM_operator_properties_filesel(ot, FOLDERFILE|COLLADAFILE, FILE_BLENDER, FILE_OPENFILE, WM_FILESEL_FILEPATH); WM_operator_properties_filesel(ot, FOLDERFILE|COLLADAFILE, FILE_BLENDER, FILE_OPENFILE, WM_FILESEL_FILEPATH, FILE_DEFAULTDISPLAY);
} }
#endif #endif