blender.git
9 years agoFix cmake/osx blenderplayer linking.
Brecht Van Lommel [Wed, 15 Sep 2010 19:03:52 +0000 (19:03 +0000)]
Fix cmake/osx blenderplayer linking.

9 years agopatch [#23758] Better handling of UTF chars in UNITS fields (lengths, angles, etc.)
Campbell Barton [Wed, 15 Sep 2010 17:37:00 +0000 (17:37 +0000)]
patch [#23758] Better handling of UTF chars in UNITS fields (lengths, angles, etc.)
from Lorenzo Tozzi (oni_niubbo) with minor edits.

--- from the tracker
The present situation is this: due to bug#22274, during editing, UTF chars are stripped from buttons with a unit associated
(length, angles, etc.).
Example: if the button displays '90°' and you click on it with LMB, the editing string will become '90'.

The problem arises if you use microns: '34µm' becomes '34' that blender interprets as 34 meters. So clicking on a button
and hitting enter won't confirm the previous value, but will change it (very badly also).

Of course nobody is using microns in blender, but the problem will arise when we will implement areas and option 'Separate
Units' will be enabled. The value '2m² 3cm²' will become '2m' during editing.

This patch solves the problem rewriting the string in a smarter way than just stripping the UTF chars: the unit is translated
from unit->name_short ('µm') to unit->name_alt ('um'). So clicking on '34µm' the editing string will become
'34um'.
--- end

note: rather then allowing empty strings in name_alt field I made it so if the unit system was the default one a NULL name_alt will just strip the string, since its the default its not needed.

9 years agobugfix [#23802] addons panel empty
Campbell Barton [Wed, 15 Sep 2010 16:42:10 +0000 (16:42 +0000)]
bugfix [#23802] addons panel empty
was using locale.getpreferredencoding() to read the file which depends on the system setup, better use 'UTF-8' always.

9 years agoignore BLI_bfile with cmake since its not used anywhere
Campbell Barton [Wed, 15 Sep 2010 16:23:04 +0000 (16:23 +0000)]
ignore BLI_bfile with cmake since its not used anywhere

9 years agoupdate for MingW/CMake
Campbell Barton [Wed, 15 Sep 2010 16:13:32 +0000 (16:13 +0000)]
update for MingW/CMake
- ignore MSVC warnings when FREE_WINDOWS is defined to quiet warnings.
- the CMake flags were not being set correctly making blender have weirdo colors (no -funsigned-char).

9 years agoDon't do weird PYTHONPATH juggling anymore. Debug build crash doesn't happen anymore...
Nathan Letwory [Wed, 15 Sep 2010 15:29:31 +0000 (15:29 +0000)]
Don't do weird PYTHONPATH juggling anymore. Debug build crash doesn't happen anymore since proper libs have been committed.

Hopefully this helps in cases where people have PYTHONPATH set on their system to an incompatible Python version, which can result in crashes.

9 years agoFix SCons for [#23833]. Ensure that empty dirs will exist too.
Nathan Letwory [Wed, 15 Sep 2010 14:50:14 +0000 (14:50 +0000)]
Fix SCons for [#23833]. Ensure that empty dirs will exist too.

9 years agowin32 mingw works again with cmake
Campbell Barton [Wed, 15 Sep 2010 14:36:32 +0000 (14:36 +0000)]
win32 mingw works again with cmake

9 years agobugfix [#23833] Console Errors (Keymaps)
Campbell Barton [Wed, 15 Sep 2010 13:41:38 +0000 (13:41 +0000)]
bugfix [#23833] Console Errors (Keymaps)
dont allow non-existing preset paths to be passed to the preset menu.

9 years agoadd missing notifiers for bone circle/border/lasso select.
Campbell Barton [Wed, 15 Sep 2010 13:22:36 +0000 (13:22 +0000)]
add missing notifiers for bone circle/border/lasso select.

9 years agobugfix [#23830] Border selecting bones in editmode bug
Campbell Barton [Wed, 15 Sep 2010 13:07:36 +0000 (13:07 +0000)]
bugfix [#23830] Border selecting bones in editmode bug
was missing a call to glLoadName(-1); so drawing commands after the bone were taken into account with the selection.

made some other minor changes that dont change functionality.

9 years agoApply patch [#23779] Small cleanup with gl_roundbox*
Nathan Letwory [Wed, 15 Sep 2010 12:18:50 +0000 (12:18 +0000)]
Apply patch [#23779] Small cleanup with gl_roundbox*
By Luca Bonavita (mindrones)

The patch renames and moves gl_round_box, gl_round_box_shade and gl_round_box_vertical_shade to UI_interface.h, so the extern usages are not needed anymore.

9 years agoApply patch [#23755] Sequencer: small code cleanup using existing color math functions
Nathan Letwory [Wed, 15 Sep 2010 11:58:19 +0000 (11:58 +0000)]
Apply patch [#23755] Sequencer: small code cleanup using existing color math functions
By Luca Bonavita (mindrones)

From detailed description: This patch doesnt change functionality, but uses the existing color math functions from math_color.c into
sequencer_draw.c.

9 years agoApply patch [#23809] Blender.exe -W support
Nathan Letwory [Wed, 15 Sep 2010 11:48:59 +0000 (11:48 +0000)]
Apply patch [#23809] Blender.exe -W support
by Dalai Felinto/Nathan Letwory

This basically implements -W support for Blender.

9 years agofilling is used for 3D curves but not for filling, sigh.
Campbell Barton [Wed, 15 Sep 2010 08:38:29 +0000 (08:38 +0000)]
filling is used for 3D curves but not for filling, sigh.

9 years agoin response to [#23812] bevel object, but no caps.
Campbell Barton [Wed, 15 Sep 2010 08:34:41 +0000 (08:34 +0000)]
in response to [#23812] bevel object, but no caps.
tweak the UI so fill options are only available with 2D curves and greyed out when bevel object is used.

9 years ago- rna properties for bones, select_head, select_tail
Campbell Barton [Wed, 15 Sep 2010 08:03:33 +0000 (08:03 +0000)]
- rna properties for bones, select_head, select_tail
- fix for minor inconsistency in armature selection, entering editmode and selecting a bone would move the manipulator because the selected bones, childs root wasnt selected on entering editmode.
- use copy_v3_v3 rather then VECCOPY in editarmature.c

9 years agofix for error in last commit.
Campbell Barton [Wed, 15 Sep 2010 08:00:19 +0000 (08:00 +0000)]
fix for error in last commit.

9 years agoBGE Dome: fix for "objects parented to the camera will be rendered multiple times...
Dalai Felinto [Wed, 15 Sep 2010 07:05:55 +0000 (07:05 +0000)]
BGE Dome: fix for "objects parented to the camera will be rendered multiple times in Dome mode"

The funny thing is: I only spotted this bug in March of this year. Almost one year after the original release. I think I don't parent objects to the camera often.

In terms of code I think that I can even think in a more elegant solution. I don't really need to rotate the camera, but simply to calculate its Modelview Matrix.
"""
m_rasterizer->SetViewMatrix(viewmat, cam->NodeGetWorldOrientation(), cam->NodeGetWorldPosition(), 1.0);
cam->SetModelviewMatrix(viewmat);
"""
The reason why I originally was rotating the camera was to make sure the frustum calculation was using the right camera frustum. For the frustum it takes the camera modelviewmatrix so the rotation really shouldn't be necessary. Leaving as it's for the time being.

* Note: the bug was never officially reported

9 years agobugfix [#23405] PNG Images bigger then 2gig wont load with blender.
Campbell Barton [Wed, 15 Sep 2010 06:43:36 +0000 (06:43 +0000)]
bugfix [#23405] PNG Images bigger then 2gig wont load with blender.
all image formats should be able to load files bigger then 2gig (when its supported)

9 years agoremove inventor and vrml1 support, we're better of having these legacy formats as...
Campbell Barton [Wed, 15 Sep 2010 05:57:48 +0000 (05:57 +0000)]
remove inventor and vrml1 support, we're better of having these legacy formats as addons.

9 years agoLogic UI: reset the value of a key when clicking outside the input button
Dalai Felinto [Wed, 15 Sep 2010 04:42:01 +0000 (04:42 +0000)]
Logic UI: reset the value of a key when clicking outside the input button
Otherwise you had no way to set it to none. This doesn't really matter, but it's nice "userwise" to be able to clear the pressed key.

9 years agoTwo small bugfixes:
Joshua Leung [Wed, 15 Sep 2010 04:15:42 +0000 (04:15 +0000)]
Two small bugfixes:
- A property used in an 'active' poll for UI code in the NLA Editor was missed during the RNA renaming madness, leading to error prints in the console

- For matrix blending code, 'fsize' arrays were being declared wrong size (4 elements long instead of 3).

9 years agoAllow start frames < 1 on image sequences.
Daniel Salazar [Wed, 15 Sep 2010 03:45:33 +0000 (03:45 +0000)]
Allow start frames < 1 on image sequences.

9 years agobvh import was broken for non euler-native rotations
Campbell Barton [Wed, 15 Sep 2010 03:33:49 +0000 (03:33 +0000)]
bvh import was broken for non euler-native rotations

9 years agokeyconfig updates/changes
Campbell Barton [Tue, 14 Sep 2010 16:45:24 +0000 (16:45 +0000)]
keyconfig updates/changes
- use preset subclass with funcs for updating the keyconfig
- keyconfig filenames are used for the UI names as with presets (so separation anymore)
- keyconfig's are stored in the preset dir (scripts/cfg dir removed)
- only the active keyconfig script is loaded
- some bugfixes for saving keymaps
- user interactions no longer saves keyconfigs too, I think this needs to be re-worked.

developer note...
multiple keyconfigs at once are not really needed now that they are stored & accessed directly in python.
for now I left it alone but we could consider to remove this capability in the future.

9 years agofix for own bug for font buffer drawing (only effected the bottom line of the stamp)
Campbell Barton [Tue, 14 Sep 2010 12:35:02 +0000 (12:35 +0000)]
fix for own bug for font buffer drawing (only effected the bottom line of the stamp)

9 years agoFix for [#23794] Particle System + FS Motion Blur corrupts some frames and possibly...
Janne Karhu [Tue, 14 Sep 2010 12:17:09 +0000 (12:17 +0000)]
Fix for [#23794] Particle System + FS Motion Blur corrupts some frames and possibly cache

9 years agoParticle edit brush strengths were loaded wrong for old files.
Janne Karhu [Tue, 14 Sep 2010 09:32:43 +0000 (09:32 +0000)]
Particle edit brush strengths were loaded wrong for old files.

9 years agoblenderplayer fix for "offset" problem when in fullscreen mode (worked together with...
Dalai Felinto [Tue, 14 Sep 2010 08:19:42 +0000 (08:19 +0000)]
blenderplayer fix for "offset" problem when in fullscreen mode (worked together with Nathan Letwory - jesterKing)

The FullScreen state was never set. Therefore the window boundary was returning the wrong dimensions (it was assuming that it was not fullscreen).

* Note: blender.exe -W has a similar problem. We are working on that ...

Tested in Windows only. If someone can test in Linux and OSX please let me know if it's good there as well. To test it: ./blenderplayer -f myfile.blend

9 years agobutton to remove presets.
Campbell Barton [Tue, 14 Sep 2010 04:58:25 +0000 (04:58 +0000)]
button to remove presets.
note: this is an option to the add preset operator which is a bit odd but easiest since these classes have all the info needed for removal as well.

9 years agoFix for a particles memory leak:
Janne Karhu [Tue, 14 Sep 2010 01:47:01 +0000 (01:47 +0000)]
Fix for a particles memory leak:
* Hair wasn't freed properly when changing particles from hair to normal particles.

9 years agoFix for [#20350] particles are offset from emittor in dupli-objects
Janne Karhu [Tue, 14 Sep 2010 01:43:46 +0000 (01:43 +0000)]
Fix for [#20350] particles are offset from emittor in dupli-objects

9 years ago"flip -> pen_flip" missing rename on particle edit mode
Dalai Felinto [Tue, 14 Sep 2010 01:11:54 +0000 (01:11 +0000)]
"flip -> pen_flip" missing rename on particle edit mode
(it was raising the error RNA_boolean_set OperatorStrokeElement.flip not found ) [Thanks Mike for spotting that :p]

9 years agorevert 31916, while having the image name and the material name mixed, this is intent...
Campbell Barton [Tue, 14 Sep 2010 01:10:20 +0000 (01:10 +0000)]
revert 31916, while having the image name and the material name mixed, this is intentional else texface export breaks.
ideally this would only happen in cases where there are more then 1 image so we could avoid ugly names in common cases.
  svn merge -r31916:31915  release/scripts/op/io_scene_obj/export_obj.py

9 years agoFix [#23761] OBJ exported materialname wrong
Nathan Letwory [Tue, 14 Sep 2010 00:45:37 +0000 (00:45 +0000)]
Fix [#23761] OBJ exported materialname wrong
Reported by Reiner Prokein.

Just use the material name instead of concatenating with any image names to it.

9 years agoFix one more case of z_transparency
Nathan Letwory [Tue, 14 Sep 2010 00:30:45 +0000 (00:30 +0000)]
Fix one more case of z_transparency

9 years agoApply patch [#23782] Fix typo in netrender UI
Nathan Letwory [Mon, 13 Sep 2010 22:57:35 +0000 (22:57 +0000)]
Apply patch [#23782] Fix typo in netrender UI
Submitted by Imran Syed (freakabcd)

9 years agofix for sphinx doc generation
Campbell Barton [Mon, 13 Sep 2010 13:29:54 +0000 (13:29 +0000)]
fix for sphinx doc generation

9 years agoFix [#22612] FFMPEG writes incorrect Xvid FourCC code
Nathan Letwory [Mon, 13 Sep 2010 12:56:39 +0000 (12:56 +0000)]
Fix [#22612] FFMPEG writes incorrect Xvid FourCC code
Reported by Karl Nyman

When XVID is chosen for FFMPEG make sure that XVID is written for FourCC code.

9 years agoFix for [#23729] Smoke / Edit Mode bug
Janne Karhu [Mon, 13 Sep 2010 11:14:12 +0000 (11:14 +0000)]
Fix for [#23729] Smoke / Edit Mode bug

9 years agoblenderplayer parsing code (better) fix
Dalai Felinto [Mon, 13 Sep 2010 08:30:56 +0000 (08:30 +0000)]
blenderplayer parsing code (better) fix
After last commit I realized that we have a different behavior when running blenderplayer or a runtime. Reason being is that when running blenderplayer the filename is mandatory. While in runtime mode it has no use for it (it can still be passed, but it makes no difference).

I also updated the -h (help) message to be multiplataform and to pass the filename argument only when in blenderplayer mode.

If someone wants to have fun it would be nice to port the blender new parsing code to the gameplayer.
* note: how come "noaudio" is used in the examples but it's not in the options list? *ouch*
I'm leaving as it's in case noaudio get implemented ...

9 years agoavoid re-creating and assigning addon UI properties for every redraw
Campbell Barton [Mon, 13 Sep 2010 08:16:31 +0000 (08:16 +0000)]
avoid re-creating and assigning addon UI properties for every redraw

9 years agopatch [#23221] Merge bone : Within chains : infinite loop
Campbell Barton [Mon, 13 Sep 2010 07:30:11 +0000 (07:30 +0000)]
patch [#23221] Merge bone : Within chains : infinite loop
from Yvon Tanguy (vono)

9 years agobugfix [#23528] ED_pose_channel_in_IK_chain() doesn't take length of IK chain into...
Campbell Barton [Mon, 13 Sep 2010 06:57:03 +0000 (06:57 +0000)]
bugfix [#23528] ED_pose_channel_in_IK_chain() doesn't take length of IK chain into account

9 years agobugfix [#23068] Image editor: Update Automatically not updating the compositor.
Campbell Barton [Mon, 13 Sep 2010 06:08:26 +0000 (06:08 +0000)]
bugfix [#23068] Image editor: Update Automatically not updating the compositor.
       [#23637] Replacing an image used in the compositor crashes
       [#23343] changes in images doesn't update compositor image nodes

9 years agobugfix [#23001] Addons do not unregister properly in Blender 2.5.3
Campbell Barton [Mon, 13 Sep 2010 04:52:56 +0000 (04:52 +0000)]
bugfix [#23001] Addons do not unregister properly in Blender 2.5.3

Now reloading the user defaults also unloads/loads addons, resetting the state to the one set in the user preferences.

moved addon functions into bpy.utils
- bpy.utils.addon_enable(name, default_set=True)
- bpy.utils.addon_disable(name, default_set=True)
- bpy.utils.addon_reset_all(name, default_set=True)

the user preference operators now just wrap these.

9 years agoblenderplayer commandline argument fixes (for -f and -w)
Dalai Felinto [Mon, 13 Sep 2010 04:52:20 +0000 (04:52 +0000)]
blenderplayer commandline argument fixes (for -f and -w)
argc always include the filename, therefore all the optional parameters should check for < argc instead of <=argc.

E.g. That was causing "blenderplayer -f 800 600 myfile.blend" to play in a wrong  Bpp (since it was trying to parse the filename to fullScreenBpp).

Bug introduced on rev. 16448 (in 2.49) and merged to 2.5 in rev. 19323

9 years agobugfix [#23778] obj importing forgets to enable transparent into material
Campbell Barton [Mon, 13 Sep 2010 02:35:59 +0000 (02:35 +0000)]
bugfix [#23778] obj importing forgets to enable transparent into material

9 years agoAnimation Editors: Added menu entry for deleting selected channels, as requested...
Joshua Leung [Mon, 13 Sep 2010 00:53:47 +0000 (00:53 +0000)]
Animation Editors: Added menu entry for deleting selected channels, as requested by animator working with Matt

9 years agoBugfix: Timeline did not refresh when changing selecting a bone
Joshua Leung [Mon, 13 Sep 2010 00:47:12 +0000 (00:47 +0000)]
Bugfix: Timeline did not refresh when changing selecting a bone

This happened/was most noticeable when clicking on a bone of an armature in posemode but not active (i.e. some object other than the armature is active when trying to select the bone).

9 years agoFix import of material with z transp enabled.
Nathan Letwory [Sun, 12 Sep 2010 20:24:15 +0000 (20:24 +0000)]
Fix import of material with z transp enabled.

Reported by Heikki Lehikoinen in #blender.fi

9 years agoPartial fix of bug #23543 in COLLADA exporter:
Arystanbek Dyussenov [Sun, 12 Sep 2010 20:19:15 +0000 (20:19 +0000)]
Partial fix of bug #23543 in COLLADA exporter:
* multiply the diffuse and specular colors by their respective intensities
* only output <transparency> if MA_TRANSP flag is on
* only output <reflective> and <reflectivity> if MA_RAYMIRROR flag is on

9 years agospec files for building arch linux packages (pacman)
Campbell Barton [Sun, 12 Sep 2010 16:00:12 +0000 (16:00 +0000)]
spec files for building arch linux packages (pacman)

9 years agosilance compiler warning.
Campbell Barton [Sun, 12 Sep 2010 14:46:41 +0000 (14:46 +0000)]
silance compiler warning.

9 years agobugfix for [#23737] reported by Mariusz Maximus
Martin Poirier [Sun, 12 Sep 2010 14:04:54 +0000 (14:04 +0000)]
bugfix for [#23737] reported by Mariusz Maximus

netrender client's functions to get slaves and jobs info didn't work anymore (was reading response content twice).

At the same time, I switched to json for the dump and load, instead of using eval and repr (for obvious security reasons). I should have done this much earlier.

9 years agooption to disable ITASC IK solver, (will be enabled by default ofcourse)
Campbell Barton [Sun, 12 Sep 2010 12:27:12 +0000 (12:27 +0000)]
option to disable ITASC IK solver, (will be enabled by default ofcourse)
- option only available to cmake, scons and make have this enabled always.
- without this clang/llvm can compile blender
- this was the second biggest internal lib, 192mb -> 172mb for all blenders libs (with debug flags), so gives some speedup to linking.

9 years agouse relative paths for ghost/cmake
Campbell Barton [Sun, 12 Sep 2010 12:16:50 +0000 (12:16 +0000)]
use relative paths for ghost/cmake

9 years agobuilding without python was broken
Campbell Barton [Sun, 12 Sep 2010 12:09:31 +0000 (12:09 +0000)]
building without python was broken

9 years agoFix [#23770] io_anim_bvh reloads the wrong module
Nathan Letwory [Sat, 11 Sep 2010 23:13:47 +0000 (23:13 +0000)]
Fix [#23770] io_anim_bvh reloads the wrong module
Spotted and fixed provided by Tim Baker

9 years agoBGE module reshuffling - VideoTexture -> bge.texture
Dalai Felinto [Sat, 11 Sep 2010 19:38:11 +0000 (19:38 +0000)]
BGE module reshuffling - VideoTexture -> bge.texture
this was the one module left to be renamed.

We didn't get to any conclusion in the mailing list, but Campbell suggested texture and I think its a good name. We can change any time before next Beta, but for now I think it's handy to have something.

The original proposal is from May:
http://lists.blender.org/pipermail/bf-committers/2010-May/027587.html

9 years agoRemoved a "properties" too much. :/
Thomas Dinges [Sat, 11 Sep 2010 15:33:30 +0000 (15:33 +0000)]
Removed a "properties" too much. :/

9 years agopyrna: replace method for operators forwarding getattr/setattr access from self....
Campbell Barton [Sat, 11 Sep 2010 15:13:22 +0000 (15:13 +0000)]
pyrna: replace method for operators forwarding getattr/setattr access from self.* to self.properties.*

9 years ago- added PNG image export option to UV layout (was only SVG and EPS which was annotyin...
Campbell Barton [Sat, 11 Sep 2010 10:31:50 +0000 (10:31 +0000)]
- added PNG image export option to UV layout (was only SVG and EPS which was annotying for some users)
- support for non utf8 paths when exporting UV layout.

9 years agonew materials and cameras had incorrect usercounts when added from python
Campbell Barton [Sat, 11 Sep 2010 06:27:38 +0000 (06:27 +0000)]
new materials and cameras had incorrect usercounts when added from python

9 years agoincorrect docstring
Campbell Barton [Sat, 11 Sep 2010 06:15:37 +0000 (06:15 +0000)]
incorrect docstring

9 years ago- camera max zoom limit was inconsistent
Campbell Barton [Sat, 11 Sep 2010 04:39:00 +0000 (04:39 +0000)]
- camera max zoom limit was inconsistent
- camera pan now follows the mouse

9 years ago- py api splash URL was old, use blender version (menu was ok in the menu)
Campbell Barton [Sat, 11 Sep 2010 04:23:45 +0000 (04:23 +0000)]
- py api splash URL was old, use blender version (menu was ok in the menu)
- netrender reloading fix

9 years agoFixed the splash screen: previous had incorrect colour, typography, no transparent...
Matt Ebb [Sat, 11 Sep 2010 00:19:38 +0000 (00:19 +0000)]
Fixed the splash screen: previous had incorrect colour, typography, no transparent header.

9 years agoFix for own stupid bug the other day, messed up the gradients in selected/deselected...
Matt Ebb [Sat, 11 Sep 2010 00:08:07 +0000 (00:08 +0000)]
Fix for own stupid bug the other day, messed up the gradients in selected/deselected UI elements.

Didn't know beta was going to be today, really hope this makes it in!

9 years agoPatch [#23759] more replace self.properties.foo --> self.foo for bf-extensions/trunk...
Thomas Dinges [Fri, 10 Sep 2010 23:39:43 +0000 (23:39 +0000)]
Patch [#23759] more replace self.properties.foo --> self.foo for bf-extensions/trunk/py/scripts
by Filiciss Muhgue (filiciss). Thanks a lot!

Part 1: Trunk, second part of patch will be committed to Extensions.

9 years agoPart 4 of 2.54 beta commits (last)
Ton Roosendaal [Fri, 10 Sep 2010 16:39:08 +0000 (16:39 +0000)]
Part 4 of 2.54 beta commits (last)

9 years agoPart 3 of 2.54 commits (1 more!)
Ton Roosendaal [Fri, 10 Sep 2010 16:34:03 +0000 (16:34 +0000)]
Part 3 of 2.54 commits (1 more!)

9 years agoPart 1 of 2.54 beta build commit
Ton Roosendaal [Fri, 10 Sep 2010 16:29:19 +0000 (16:29 +0000)]
Part 1 of 2.54 beta build commit

9 years agofix for error updating rigify UI classes
Campbell Barton [Fri, 10 Sep 2010 16:07:18 +0000 (16:07 +0000)]
fix for error updating rigify UI classes

9 years agoBug #23715: patch by Jan Diederich to avoid having duplicate IDs after they are trans...
Arystanbek Dyussenov [Fri, 10 Sep 2010 15:24:10 +0000 (15:24 +0000)]
Bug #23715: patch by Jan Diederich to avoid having duplicate IDs after they are translated.
For example, object ID names "1a", "2a", "3a", will be exported as "_a", "_a2", "_a3". Thanks Jan!

9 years agorewrote python IDProperty metaclass in C, this was a quick hack to get it working.
Campbell Barton [Fri, 10 Sep 2010 14:54:50 +0000 (14:54 +0000)]
rewrote python IDProperty metaclass in C, this was a quick hack to get it working.

The reason this didnt work is all sibclasses of pythons type() or PyType_Type in C, have to have their size set to sizeof(PyHeapTypeObject) rather then sizeof(PyTypeObject) as you might expect.
This is strange since its not a heap-class (defined in pythons runtime), but a static C type, so Im not sure about this, and cant find any documentation but it seems to work ok.

9 years agoFix for [#23090] Blender 2.5 : move object to new layer crashes Blender
Janne Karhu [Fri, 10 Sep 2010 08:36:14 +0000 (08:36 +0000)]
Fix for [#23090] Blender 2.5 : move object to new layer crashes Blender

9 years agoFix #23742: a NURBS surface created with two joined curves crashes Blender on rendering
Sergey Sharybin [Fri, 10 Sep 2010 06:05:18 +0000 (06:05 +0000)]
Fix #23742: a NURBS surface created with two joined curves crashes Blender on rendering

Nurb's material number used to be clamped to [0;-1] for case object hasn't got
materials. Forced to keep material number on zero if object hasn't got any materials.

9 years agoremove redundant buffer character positioning code & remove attr keyword argument...
Campbell Barton [Fri, 10 Sep 2010 04:04:48 +0000 (04:04 +0000)]
remove redundant buffer character positioning code & remove attr keyword argument from property definitions.

9 years agobugfix [#23607] Render Stamp, incorrect apostrophe Y position.
Campbell Barton [Fri, 10 Sep 2010 03:56:11 +0000 (03:56 +0000)]
bugfix [#23607] Render Stamp, incorrect apostrophe Y position.

9 years agopatch [#23749] IntVectorProperty missing step [patch]
Campbell Barton [Fri, 10 Sep 2010 02:46:29 +0000 (02:46 +0000)]
patch [#23749] IntVectorProperty missing step [patch]
from Dan Eicher (dna), also edited some comments.

9 years agoFix bug caused by someone else's error.
Martin Poirier [Thu, 9 Sep 2010 22:39:27 +0000 (22:39 +0000)]
Fix bug caused by someone else's error.

9 years agoreplace self.properties.foo --> self.foo
Campbell Barton [Thu, 9 Sep 2010 18:03:57 +0000 (18:03 +0000)]
replace self.properties.foo --> self.foo

9 years ago- bugfix, operators were getting their properties registered twice.
Campbell Barton [Thu, 9 Sep 2010 17:41:36 +0000 (17:41 +0000)]
- bugfix, operators were getting their properties registered twice.
- operator properties are now converted into python property() class members which bypass the operator 'properties' member.
  self.properties.mysetting
 ... can now be written as ...
  self.mysetting
- fix for error reloading rigify

9 years agodefinition/syntax edits for operators and rna (no functional changes)
Campbell Barton [Thu, 9 Sep 2010 17:36:54 +0000 (17:36 +0000)]
definition/syntax edits for operators and rna (no functional changes)

9 years agofix for addons UI with recent rna changes,
Campbell Barton [Thu, 9 Sep 2010 14:22:03 +0000 (14:22 +0000)]
fix for addons UI with recent rna changes,
also moved temp properties from the scene into the window manager since they are not saved there.

9 years agofix crash for calling setattr with a non-string attribute and warning.
Campbell Barton [Thu, 9 Sep 2010 13:58:38 +0000 (13:58 +0000)]
fix crash for calling setattr with a non-string attribute and warning.

9 years agoPartial fix for [#21948] Full sample motion blur with cloth - cloth and collision...
Janne Karhu [Thu, 9 Sep 2010 11:07:07 +0000 (11:07 +0000)]
Partial fix for [#21948] Full sample motion blur with cloth - cloth and collision object render issue.
* Now cloth reads cache using subframes when rendering.
* Cloth cache also was reset every time on the start frame which kind of defeats the point of the caching.

9 years agoBug #23715 in COLLADA exporter: prepend an '_' to the ID if it starts with an illegal...
Arystanbek Dyussenov [Thu, 9 Sep 2010 11:01:30 +0000 (11:01 +0000)]
Bug #23715 in COLLADA exporter: prepend an '_' to the ID if it starts with an illegal character.
Pointed out by Tom Haines. Thanks!

9 years agoPatch by Jan Diederich, fixes bug #23715 in the COLLADA exporter.
Arystanbek Dyussenov [Thu, 9 Sep 2010 08:14:36 +0000 (08:14 +0000)]
Patch by Jan Diederich, fixes bug #23715 in the COLLADA exporter.
Allow IDs to start only with an alphabetic character replacing digits with an '_'.

9 years agoFix for [#23734] Force Fields Min/Max don't work
Janne Karhu [Thu, 9 Sep 2010 07:52:35 +0000 (07:52 +0000)]
Fix for [#23734] Force Fields Min/Max don't work
*Special case for planar vortex field

9 years agoremove class methods for defining properties
Campbell Barton [Thu, 9 Sep 2010 06:29:44 +0000 (06:29 +0000)]
remove class methods for defining properties
 eg: bpy.types.Scene.BoolProperty()

9 years ago- fix for using ['prop'] in RNA api
Campbell Barton [Thu, 9 Sep 2010 06:06:37 +0000 (06:06 +0000)]
- fix for using ['prop'] in RNA api
- fix for testing without USE_PY_METACLASS defined.

9 years agosupport for defining rna class properties as class attributes
Campbell Barton [Thu, 9 Sep 2010 05:37:22 +0000 (05:37 +0000)]
support for defining rna class properties as class attributes
eg:
 bpy.types.Scene.myprop = BoolProperty()

note, this uses an ugly python metaclass, this should be replaced with a C implimentation which is included but commented out, causing crashes in pythons GC which gives no hint as to where the bug comes from.

9 years ago== Multires ==
Nicholas Bishop [Thu, 9 Sep 2010 00:14:51 +0000 (00:14 +0000)]
== Multires ==

Fixed bug #23657, "Modifiers dosen't work when you select diffrent mesh for object"

Multires modifier now adds empty mdisps if they're missing, rather than displaying a warning
Switching an object's mesh will now check for a multires modifier; if found the modifier's total number of levels are reset to match the mesh's mdisps
Switching the mesh also forces a multires update so that sculpted changes aren't lost

9 years agobugfix [#23725] bpy.context.window_manager.
Campbell Barton [Wed, 8 Sep 2010 21:47:16 +0000 (21:47 +0000)]
bugfix [#23725] bpy.context.window_manager.

9 years agoFix for [#23736] Network render - error in file: release\scripts\io\netrender\client...
Thomas Dinges [Wed, 8 Sep 2010 19:49:05 +0000 (19:49 +0000)]
Fix for [#23736] Network render - error in file: release\scripts\io\netrender\client.py + patch.
Patch by Mariusz Maximus (mariuszekpl). Thanks!

9 years agoPartial fix for [#23714] Linked instance group with particles doesn't render properly
Janne Karhu [Wed, 8 Sep 2010 11:08:34 +0000 (11:08 +0000)]
Partial fix for [#23714] Linked instance group with particles doesn't render properly
* Only partial because rendering of dupliobjects / groups with particles isn't yet fully implemented

9 years agopy/rna internals
Campbell Barton [Wed, 8 Sep 2010 10:43:36 +0000 (10:43 +0000)]
py/rna internals
- rna internal deferred properties now store the functions as PyObjects rather then C function pointers
- Property functions now allow the first non keyword argument to be a class.