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
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2013-03-26 18:33:53 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2013-03-26 18:33:53 +0400
commitb4bd43e02283d5c2df07b49441a9de24f327736f (patch)
treeb5acf9ff066adc73cc2d2631b6e6b6e76cdc6e60 /source/blender/editors/render/render_shading.c
parent0c07c33fec4ef04f2931863f40f4447aaf810064 (diff)
I18n: various "new data translation" fixes...
Diffstat (limited to 'source/blender/editors/render/render_shading.c')
-rw-r--r--source/blender/editors/render/render_shading.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/editors/render/render_shading.c b/source/blender/editors/render/render_shading.c
index dc26bde6861..979ccf3cf02 100644
--- a/source/blender/editors/render/render_shading.c
+++ b/source/blender/editors/render/render_shading.c
@@ -428,10 +428,12 @@ static int new_texture_exec(bContext *C, wmOperator *UNUSED(op))
PropertyRNA *prop;
/* add or copy texture */
- if (tex)
+ if (tex) {
tex = BKE_texture_copy(tex);
- else
+ }
+ else {
tex = add_texture(bmain, DATA_("Texture"));
+ }
/* hook into UI */
uiIDContextProperty(C, &ptr, &prop);
@@ -480,7 +482,7 @@ static int new_world_exec(bContext *C, wmOperator *UNUSED(op))
wo = BKE_world_copy(wo);
}
else {
- wo = add_world(bmain, "World");
+ wo = add_world(bmain, DATA_("World"));
if (BKE_scene_use_new_shading_nodes(scene)) {
ED_node_shader_default(C, &wo->id);