Commit Graph

2926 Commits

Author SHA1 Message Date
Ton Roosendaal
b61adec1fd Bugfix #25365
Property buttons: the "ID template" allowed to unlink data from object,
like Mesh or Curve etc, which is not supported. Button now is hidden.
Thanks Dan Eicher for patch.

Also: improved tooltip for 'data browse'. It was generic, now it gives
specific per-type information.
2010-12-24 10:15:57 +00:00
Campbell Barton
4d0c10d5ca presets for operators, re-using same preset system as render, cloth etc use.
- operators need to enable the option OPTYPE_PRESET or 'PRESET' in python.
- hidden properties are not written.
- currently this only works in the file selector (enabled for FBX/OBJ export)
- currently the menu label doesnt change when presets are selected, this is a TODO, not so simple since the UI is defined in C and the label in python.
- presets save in "scripts/presets/operators/*id*/*.py"
2010-12-24 07:46:40 +00:00
Campbell Barton
80e85c10be bugfix [#25364] Export to X3D generates objects with black color
was dividing color by 255 when it was already from 0-1.
also use slicing for getting tuples from vectors & colors.
2010-12-24 04:27:21 +00:00
Campbell Barton
577437488e use slicing for exporters for some speedup, no functional change.
3ds also uses non tuple __slots__ and had unused default values for some classes.
2010-12-24 04:24:33 +00:00
Campbell Barton
ce36f9a189 fix for exporting OBJ, materials when no world was set. also use slicing to get tuples. 2010-12-24 04:21:05 +00:00
Campbell Barton
b1d3854095 Make FBX export respect use_deform bone option 2010-12-23 09:42:00 +00:00
Campbell Barton
194c23db0d fix [#25353] X3D Export generates AttributeError: 'NoneType' object has no attribute 'texture' 2010-12-22 23:16:45 +00:00
Campbell Barton
54343b79e6 remove reload() from builtins since python3 no longer uses this.
use imp.reload now.

Should use import hooks but for now replace imp.reload with our own reload as the builtin reload was replaced before.
2010-12-22 21:39:48 +00:00
Luca Bonavita
009eb42c0e == text editor templates ==
- adding template of a add_object addon from Florian Meyer (testscreenings)
- this template is using the new add_utils module in bf-extensions (also from Florian)
2010-12-22 18:43:21 +00:00
M.G. Kishalmi
3d58d17442 hide the play-reversed button if using JACK + A/V sync
(jack doesn't support reversed playback)

hey team, I'm the new guy.
proud to be on board! =)
2010-12-22 11:37:56 +00:00
Campbell Barton
088f35787f bugfix [#25252] X3D Export does not specify ImageTexture to go with provided TextureCoordinate data
x3d material support is primitive but at least export first image texture found, similar to how texface is treated at the moment.
2010-12-22 10:44:31 +00:00
Campbell Barton
97d8e8bf42 bugfix [#25332] X3D export fails to export complete file 2010-12-22 00:30:22 +00:00
Janne Karhu
803bf8326d Better info text for particle edit
* Response to [#25314] Baked Particles point cache can not be editing in Particle Mode if Disk Cache option is enabled.
2010-12-21 20:25:37 +00:00
Campbell Barton
a9ba96896a modified fix for commits r33811, 33812.
- SSS Presets were not working on pinned materials.
- added ability for save-presets to define variables to stop them becoming too verbose.
- remove object.active_node_material
2010-12-20 23:26:29 +00:00
Ton Roosendaal
7e624b81a4 Small UI fix
Image texture "repeat" options now greay out when not active.
Thanks Mario Kishalmi for the patch :)
2010-12-20 18:57:59 +00:00
Ton Roosendaal
291a66d212 Bugfix: material SSS presets now copy correctly to the displayed
material (in case it has nodes)
2010-12-20 13:03:03 +00:00
Ton Roosendaal
f043caf1c1 Py UI fix: options for "Single user" had different names than the operator itself. 2010-12-19 13:48:45 +00:00
Campbell Barton
c2c71e59ed fix for own error [#25299] custom properties not showing in viedw3d panel
error made when fixing id pinning, for non-properties space.
2010-12-19 13:04:14 +00:00
Campbell Barton
4476e4c75c bugfix [#25289] X3D export generates incorrect direction for SpotLight 2010-12-19 07:40:08 +00:00
Campbell Barton
73ad13c879 fix for make-dupli-face operator & vector multiplication, tab/space error in last commit. 2010-12-19 07:14:42 +00:00
Campbell Barton
c26cc0afa1 bugfix [#25290] Align on text gives a traceback
[#25284] Traceback error on "System Info" script

- Align was only working on mesh objects, now operate on all objects, missing boundbox's are treated as single points.
- obj.bound_box was returning all nan's for object types with no boundbox.
- ENUM_FLAG type enums were showing no text when displayed in operator redo panel.
2010-12-19 07:05:29 +00:00
Joshua Leung
43af26fa41 Bugfix [#25291] Objects that should not have subsurface modifier have
it (eg cameras)

When trying to add a modifier to non-geometry objects, warnings are
now shown instead of just adding some (useless) modifiers that cannot
be removed later.
2010-12-19 01:14:57 +00:00
Janne Karhu
b58dbbd51b Extreme makeover of pointcache code:
* Pointcache code was quite ugly looking and complicated, so here are mostly just cosmetic adjustments, but some improved logic also.
* Slight cleanup of pointcache ui too.
* Shouldn't have any functional changes what so ever, so poke me right away if something seems off.
2010-12-18 15:03:31 +00:00
Campbell Barton
77c17d332d fix [#25262] Keyboard shortcut presets can't be made because of wrong folder
New create option when getting a user resource for creating paths.
  bpy.utils.user_resource(type, path, create=False)
2010-12-18 07:22:52 +00:00
Campbell Barton
b48f7901d2 [#25270] X3D Export generates incorrect location for Lamp
was actually incorrect location for everything!

- x3d's global scene rotation value wasnt converted from deg to radians.
- camera viewport was also incorrectly exported.

use mathutils rather then inline math for rotations.
2010-12-17 18:38:44 +00:00
Thomas Dinges
f01672fde0 Render Buttons UI:
* Fixed a small alignment issue (Aspect Ratio/ Frame Rate Columns)
2010-12-17 18:25:08 +00:00
Campbell Barton
157082ecc9 fixes for pinning bones & pose ui, could easily get error messages and invalid situations.
when pinned there is no pose bone.
2010-12-17 17:51:43 +00:00
Ton Roosendaal
031d37f4d9 Bugfix #25261
Weightpaint tools now grey out when no active group exists.
2010-12-17 16:02:55 +00:00
Campbell Barton
902b239aa8 no functional changes: SETLOOPER macro assumed a scene was defined called 'sce' used to loop over, now make this an argument, helps to make it clear what's going on. 2010-12-17 15:37:59 +00:00
Campbell Barton
676d795d7e bugfix [#25240] Custom properties panel on pinned data fail. 2010-12-17 10:33:28 +00:00
Campbell Barton
5b56bbfa0b script which dumps ui as xml in a fake blender envieonment.
useful for testing for bad api use (make sure UI uses limited functions).
2010-12-17 07:06:27 +00:00
Campbell Barton
4558d45d46 WM_OT_path_open was failing with non utf8 paths. 2010-12-17 05:12:36 +00:00
Campbell Barton
6d2019074f - fix [#25246] export default scene to X3D crashes exporter, own fault but also made sure all colors are now clamped and noticed 3D text was not being exported.
- de-duplicated 'object_type_items' enum, text was known as TEXT in one, FONT in another.
2010-12-16 05:02:15 +00:00
Daniel Salazar
dbbd12d760 Randomize Transform op: Scale Even wasn't really working with objects
with an asymmetric starting scale. Handling of starting scale
values of 0 needs improvement, ie: default for delta transform
2010-12-15 10:59:45 +00:00
Daniel Salazar
eac46088e5 Randomize Transform operator:
Added support for working on delta transformations instead of plain
transform. this should help the fact that you cant randomize animated
objects (still need to check into that)

Removed minimun scale since it was not well done, need a stronger
version of this
2010-12-15 08:21:58 +00:00
Campbell Barton
4057626e55 - revert own recent change after discussion, default set hard minimum of colors to 0 but now don't set a hard min, each property needs to define.
- use_old_bump setting only applies to material texture slots.
2010-12-14 16:20:25 +00:00
Campbell Barton
295ce322e3 missed renaming this enum. 2010-12-14 13:56:10 +00:00
Campbell Barton
58f31f8a5d Change set handle types back to menu now menus have key access - V+A, V+V, V+L, V+F
for Graph & Edit Curve view.

Editcurve can be Hkey for hide again.
2010-12-14 10:17:13 +00:00
Campbell Barton
96eeb9ad93 bugfix [#25209] X3D export results in invalid value for specular color 2010-12-14 04:45:29 +00:00
Janne Karhu
7bf5d9449c "Fix" for [#25184] Forces for growing hair - update inconsistency - as discussed with Jahka on Saturday on IRC
* New option to "Regrow hair" for each frame.
* This was perhaps more a feature request, but there was a similar useful feature called "animated hair" in particles at some point.
* The previous behavior for hair growing was inconsistent to say the least, so this is a nice option to have.
2010-12-13 10:45:24 +00:00
Janne Karhu
4cd06a6526 Fix for [#25185] Toggling hair dynamics without deleting cache leaves hair disattached when mesh animation is controlled by deformers - discussed with Jahka on IRC on Sat 2010-12-13 09:39:14 +00:00
Campbell Barton
f2d4b7dfb8 fix [#24752] ctr-tab hotkey dont show "mesh select mode" menu for maya preset, but for default blender preset its ok 2010-12-13 04:33:58 +00:00
Campbell Barton
ddd2dff60e bugfix [#25186] FBX export rotations aren't applied to the exported model file. 2010-12-12 21:50:55 +00:00
Thomas Dinges
450a09de2e Ui: User Preferences "Editing":
* "Sculpt Overlay Color" wasted some unnecessary space.
2010-12-12 20:36:07 +00:00
Doug Hammond
2b772739fb Moved extensions_framework into addons/modules 2010-12-11 16:35:11 +00:00
Campbell Barton
3256d0fc6a allow addons/modules path so extension authors can develop their own shared modules. 2010-12-11 11:52:28 +00:00
Campbell Barton
552cecc89e ported back background_job template from 2.4x, useful for automating blender to generate scenes in background mode. 2010-12-11 11:14:30 +00:00
Ton Roosendaal
e11601be37 Bugfix #25153
graph editor:
- option "extend mode" requires channel-selection. Moved pulldown menu
  from Key to Channel instead
- hotkey SHIFT+E for same operation now works both in channel list as in
  main view.
2010-12-10 18:48:20 +00:00
Campbell Barton
b12ca6a400 bugfix [#25135] X3D export places scene objects incorrectly in x3d file
matrix rotation order issue.
2010-12-10 06:08:11 +00:00
Campbell Barton
ad3ce4abab fix [#25116] X3D export does generate image texture information in x3d file
- was exporting UVs only if an image texture was used too
- was also only exporting vertex colors if UV's existed which doesnt make much sense.
2010-12-10 05:35:06 +00:00