diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-03-30 16:15:16 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-03-30 16:15:16 +0400 |
commit | 71446eea573db3ac6bac5f297c0655acbeada67c (patch) | |
tree | 6bac99531e7c4ce7cc9d8b512920a037e444be32 /release | |
parent | 253de0ed86f273d0032acbbd0b8237a358b35cbd (diff) |
* Multiply for panorama cameras
* Some cases of struct name being set where it shouldnt have been.
* Spelling: wich --> which
* Copy and initialize uv modifier scale, remove unneeded enum.
* Ability to pin any object into the context.
* Update uv window while transforming (useful when used with UVProject modifier)
* Patch by Wahooney, so new template's are internal text and dont get saved over
by mistake.
* Fix for https://bugzilla.redhat.com/show_bug.cgi?id=572186
Bug 572186 - [abrt] crash in blender-2.49b-5.fc12: Process
/usr/bin/blender.bin was killed by signal 6 (SIGABRT). Original fix submitted
by Jochen Schmitt.
* [#21816] bpy.data.add_image has stopped working on Windows. moved to
bpy.data.images.load(), missed this call.
(commits 27726,27825,27828,27831,27832,27833,27834,27836,27837,27838,27839,27858 by Campbell from render25 branch)
Diffstat (limited to 'release')
-rw-r--r-- | release/plugins/sequence/blur.c | 2 | ||||
-rw-r--r-- | release/scripts/io/import_scene_obj.py | 2 | ||||
-rw-r--r-- | release/scripts/modules/bpy_types.py | 9 | ||||
-rw-r--r-- | release/scripts/ui/properties_data_modifier.py | 9 | ||||
-rw-r--r-- | release/scripts/ui/properties_object.py | 7 | ||||
-rw-r--r-- | release/scripts/ui/space_text.py | 2 |
6 files changed, 21 insertions, 10 deletions
diff --git a/release/plugins/sequence/blur.c b/release/plugins/sequence/blur.c index 261bfa40351..c23a924ac65 100644 --- a/release/plugins/sequence/blur.c +++ b/release/plugins/sequence/blur.c @@ -160,7 +160,7 @@ void doblur(struct ImBuf *mbuf, float fac, Cast *cast) char *irect, *prect, *mrect; float *irectf, *prectf, *mrectf; - /* wich buffers ? */ + /* which buffers ? */ if(fac>7.0) fac= 7.0; if(fac<=1.0) return; diff --git a/release/scripts/io/import_scene_obj.py b/release/scripts/io/import_scene_obj.py index e12d0c8eaac..467aa5194b7 100644 --- a/release/scripts/io/import_scene_obj.py +++ b/release/scripts/io/import_scene_obj.py @@ -322,7 +322,7 @@ def load_image(imagepath, dirname): for path in variants: if os.path.exists(path): - return bpy.data.add_image(path) + return bpy.data.images.load(path) else: print(path, "doesn't exist") diff --git a/release/scripts/modules/bpy_types.py b/release/scripts/modules/bpy_types.py index 060de711637..16fac74b9d0 100644 --- a/release/scripts/modules/bpy_types.py +++ b/release/scripts/modules/bpy_types.py @@ -490,7 +490,7 @@ class Header(StructRNA, _GenericUI): class Menu(StructRNA, _GenericUI): __slots__ = () - def path_menu(self, searchpaths, operator): + def path_menu(self, searchpaths, operator, props_default={}): layout = self.layout # hard coded to set the operators 'path' to the filename. @@ -511,7 +511,12 @@ class Menu(StructRNA, _GenericUI): if f.startswith("."): continue - layout.operator(operator, text=bpy.utils.display_name(f)).path = path + props = layout.operator(operator, text=bpy.utils.display_name(f)) + + for attr, value in props_default.items(): + setattr(props, attr, value) + + props.path = path def draw_preset(self, context): """Define these on the subclass diff --git a/release/scripts/ui/properties_data_modifier.py b/release/scripts/ui/properties_data_modifier.py index 8bf1617c124..b1013150d4b 100644 --- a/release/scripts/ui/properties_data_modifier.py +++ b/release/scripts/ui/properties_data_modifier.py @@ -689,9 +689,12 @@ class DATA_PT_modifiers(DataButtonsPanel): if wide_ui: col = split.column() sub = col.column(align=True) - sub.label(text="Aspect Ratio:") - sub.prop(md, "horizontal_aspect_ratio", text="Horizontal") - sub.prop(md, "vertical_aspect_ratio", text="Vertical") + sub.prop(md, "aspect_x", text="Aspect X") + sub.prop(md, "aspect_y", text="Aspect Y") + + sub = col.column(align=True) + sub.prop(md, "scale_x", text="Scale X") + sub.prop(md, "scale_y", text="Scale Y") def WAVE(self, layout, ob, md, wide_ui): split = layout.split() diff --git a/release/scripts/ui/properties_object.py b/release/scripts/ui/properties_object.py index d83253bf771..36aa5c9c29e 100644 --- a/release/scripts/ui/properties_object.py +++ b/release/scripts/ui/properties_object.py @@ -35,12 +35,15 @@ class OBJECT_PT_context_object(ObjectButtonsPanel): def draw(self, context): layout = self.layout - + space = context.space_data ob = context.object row = layout.row() row.label(text="", icon='OBJECT_DATA') - row.prop(ob, "name", text="") + if space.use_pin_id: + row.template_ID(space, "pin_id") + else: + row.prop(ob, "name", text="") class OBJECT_PT_custom_props(ObjectButtonsPanel, PropertyPanel): diff --git a/release/scripts/ui/space_text.py b/release/scripts/ui/space_text.py index 3a789566a61..9f52ae25121 100644 --- a/release/scripts/ui/space_text.py +++ b/release/scripts/ui/space_text.py @@ -177,7 +177,7 @@ class TEXT_MT_templates(bpy.types.Menu): bl_label = "Script Templates" def draw(self, context): - self.path_menu(bpy.utils.script_paths("templates"), "text.open") + self.path_menu(bpy.utils.script_paths("templates"), "text.open", {"internal": True}) class TEXT_MT_edit_view(bpy.types.Menu): |