11 years agoquit blender if the first X11 window fails to open.
Campbell Barton [Wed, 1 Dec 2010 07:15:05 +0000 (07:15 +0000)]
quit blender if the first X11 window fails to open.
mainly just to avoid a segfault so the user knows its not a bug.

11 years agoworkaround [#24958] Cloth pinning not working
Campbell Barton [Wed, 1 Dec 2010 05:59:11 +0000 (05:59 +0000)]
workaround [#24958] Cloth pinning not working
detailed explanation as to why this is needed in report.

11 years agobugfix [#23406] DPX Images load darker then saved, UI broken.
Campbell Barton [Wed, 1 Dec 2010 02:54:10 +0000 (02:54 +0000)]
bugfix [#23406] DPX Images load darker then saved, UI broken.
- a linear float buffer was being created and saved into a non-linear DPX/Cineon file.
- removed the UI since the settings are not used at the moment.

added a utility function IMB_float_profile_ensure(), which returns a float buffer in the requested profile, using the existing if needed or returning an allocated buffer if the profile is different to that of the ImBuf. - Useful this case where the save function has its own linear setting.

11 years agofix for some mistakes in recent commit.
Campbell Barton [Wed, 1 Dec 2010 02:40:13 +0000 (02:40 +0000)]
fix for some mistakes in recent commit.

11 years agopatch from JacobF on IRC, copy smoke settings. double checked none of these are used...
Campbell Barton [Wed, 1 Dec 2010 02:28:08 +0000 (02:28 +0000)]
patch from JacobF on IRC, copy smoke settings. double checked none of these are used for runtime.

11 years agofix [#24990] When extruding bones the outliner does not immediately update
Campbell Barton [Tue, 30 Nov 2010 23:50:21 +0000 (23:50 +0000)]
fix [#24990] When extruding bones the outliner does not immediately update
also changed notify functions for new bone, hide/reveal, switch direction and parent.
these used ND_POSE or ND_DRAW, replaced with ND_BONE_SELECT since this changes editmode bone hierarchy/selection.

11 years agobugfix [#22638] Alpha channel not saved when using texture paint
Campbell Barton [Tue, 30 Nov 2010 23:38:31 +0000 (23:38 +0000)]
bugfix [#22638] Alpha channel not saved when using texture paint
check for alpha channel while saving images that have been painted onto.
It would be nicer to do this while in paint mode except this isn't so simple with project paint using multiple images at once.

11 years agominor console changes.
Campbell Barton [Tue, 30 Nov 2010 22:39:41 +0000 (22:39 +0000)]
minor console changes.
- remove report argument from console functions.
- don't update the scroll area while drawing, do this within operators instead.
- dont redraw while selecting text unless selection changes.

11 years agobugfix [#23423] Multi-window : closing game windows cause blender crash
Campbell Barton [Tue, 30 Nov 2010 21:51:03 +0000 (21:51 +0000)]
bugfix [#23423] Multi-window : closing game windows cause blender crash
detect closing window while the BGE runs and exit without crashing, as if Esc was pressed.

11 years agoSmoke now uses only one point cache where both normal and high resolution smoke are...
Janne Karhu [Tue, 30 Nov 2010 21:31:18 +0000 (21:31 +0000)]
Smoke now uses only one point cache where both normal and high resolution smoke are stored together:
* Separate caches were causing quite a lot of problems both in principle and practice.
* For example it doesn't really make sense to have different frame ranges for normal and high resolution smoke, but this was fully possible before.
* Also to fully bake the smoke you had to do a "Bake All Dynamics", which completely defeats the whole point of the feature!
* As a result of this change the smoke cache usage is much much simpler and less error prone.
* This is quite a big change, but hopefully there should be less rather than more problems as a result :)

Some other related changes:
* Changing the cache name now works for disk caches properly too, it now just renames the cache files so should be faster too!
* Smoke is now always forced to disk cache with step 1 on file load as there were some strange cases where smoke was trying to use memory cache.
* Disabled smoke debug prints from console.
* Disabled changing smoke parameters when smoke is baked.

Note to users: The unfortunate side effect of this is that old high resolution simulations have to be baked again, but in return you get much better and more logical functionality. Sorry none the less!

11 years agominor rna changes
Campbell Barton [Tue, 30 Nov 2010 20:22:26 +0000 (20:22 +0000)]
minor rna changes
- set matrix values not to be animatable
- some matrix values were still accessed as 1d arrays.

11 years agomissing NULL check in own recent commit,
Campbell Barton [Tue, 30 Nov 2010 19:12:17 +0000 (19:12 +0000)]
missing NULL check in own recent commit,

11 years agoremove unmaintained windows and unix game engine plugin code.
Campbell Barton [Tue, 30 Nov 2010 19:08:44 +0000 (19:08 +0000)]
remove unmaintained windows and unix game engine plugin code.

11 years agoSVN maintenance.
Guillermo S. Romero [Tue, 30 Nov 2010 19:06:34 +0000 (19:06 +0000)]
SVN maintenance.

11 years agoAdd option for CMake to build libredcode, also use CODEC prefix for ffmpeg, quicktime...
Campbell Barton [Tue, 30 Nov 2010 18:52:39 +0000 (18:52 +0000)]
Add option for CMake to build libredcode, also use CODEC prefix for ffmpeg, quicktime & sndfile options.

11 years agoBugfix #24976
Ton Roosendaal [Tue, 30 Nov 2010 18:46:34 +0000 (18:46 +0000)]
Bugfix #24976

Compositor: MultiLayer image node: on using layer menu, the entire
multilayer file got freed, causing node to collapse and open full
again after a composite.

11 years agomisc small changes.
Campbell Barton [Tue, 30 Nov 2010 18:07:44 +0000 (18:07 +0000)]
misc small changes.
- commented unused View3D->flag's
- popup dialog now centers over the mouse
- only overwrite image alpha with render settings on save if saving the render result.

11 years agoBugfix #24986
Ton Roosendaal [Tue, 30 Nov 2010 15:39:38 +0000 (15:39 +0000)]
Bugfix #24986

When duplicating a mesh that has a mask modifier on it,
the invert option of that modifier dis not copy over.

Report + fix provided by Jacob F. Thanks!

11 years agobugfix [#24974] "select all" in weight paint -> face selection mode selects all bones...
Campbell Barton [Tue, 30 Nov 2010 05:15:58 +0000 (05:15 +0000)]
bugfix [#24974] "select all" in weight paint -> face selection mode selects all bones instead of all faces
face mask mode overrides pose mode keys. also removed function call from transform code.

11 years agobugfix [#24798] Texture panels are shown in wrong order
Campbell Barton [Tue, 30 Nov 2010 01:03:17 +0000 (01:03 +0000)]
bugfix [#24798] Texture panels are shown in wrong order

11 years agoreplace overly verbose matrix creation for BGE camera, typo fix from MikeS.
Campbell Barton [Mon, 29 Nov 2010 20:57:02 +0000 (20:57 +0000)]
replace overly verbose matrix creation for BGE camera, typo fix from MikeS.

11 years agobugfix [#24969] Python Console bug: inserting a large text leads to strange caret...
Campbell Barton [Mon, 29 Nov 2010 20:42:03 +0000 (20:42 +0000)]
bugfix [#24969] Python Console bug: inserting a large text leads to strange caret behavior

Caret wasn't wrapping.

11 years agoFalse should be with capital in Py
Ton Roosendaal [Mon, 29 Nov 2010 18:58:49 +0000 (18:58 +0000)]
False should be with capital in Py
(IRC report by dsavi)

11 years agoMakefile fix, the was using minor release numbers,
Ton Roosendaal [Mon, 29 Nov 2010 17:23:06 +0000 (17:23 +0000)]
Makefile fix, the was using minor release numbers,
which conflicts how paths work in BLI bundle detection.

11 years agoBugfix #24971
Ton Roosendaal [Mon, 29 Nov 2010 17:10:46 +0000 (17:10 +0000)]
Bugfix #24971

Outliner: if bottom slider was hidden, you still could not click there
on items. Code was using region-mask to clip input, but the mask is not
adjusted for sliders now (keeps view same).

11 years agoSVN maintenance.
Guillermo S. Romero [Mon, 29 Nov 2010 17:09:33 +0000 (17:09 +0000)]
SVN maintenance.

11 years agoFor all buttons with search-menu option, the button will show a
Ton Roosendaal [Mon, 29 Nov 2010 15:25:06 +0000 (15:25 +0000)]
For all buttons with search-menu option, the button will show a
red-alert drawing when input doesn't exist. Will help debugging
when messing with uv-layer names, vertex groups, etc.

Also closes bugreport #24905

11 years agoDescription of BLI_strncpy() and BLI_strdupcat() were mixed up.
Ton Roosendaal [Mon, 29 Nov 2010 14:29:30 +0000 (14:29 +0000)]
Description of BLI_strncpy() and BLI_strdupcat() were mixed up.
IRC reported by OniNiubbo

11 years agoFrom the todo:
Ton Roosendaal [Mon, 29 Nov 2010 13:14:51 +0000 (13:14 +0000)]
From the todo:

Save or load .blend file shows cursor 'wait' again. Is clear to indicate
a totally blocking operation.

11 years agofix for error when changing DISBALE_PYTHON -> WITH_PYTHON,
Campbell Barton [Mon, 29 Nov 2010 07:56:45 +0000 (07:56 +0000)]
fix for error when changing DISBALE_PYTHON -> WITH_PYTHON,
This define wasn't set in some parts of the BGE causing problems with the view matrix.
in CMake define for the entire BGE fixes this.

11 years agoFix [#24964] HISTOGRAM: Inconsistency in spaces
Matt Ebb [Mon, 29 Nov 2010 07:37:20 +0000 (07:37 +0000)]
Fix [#24964] HISTOGRAM: Inconsistency in spaces

11 years agoFix [#20241] half-transparent objects in volume have no shadow.
Matt Ebb [Mon, 29 Nov 2010 07:07:08 +0000 (07:07 +0000)]
Fix [#20241] half-transparent objects in volume have no shadow.

11 years agoinclude headers in cmake source, added a script to check for consistency, reporting...
Campbell Barton [Mon, 29 Nov 2010 04:35:56 +0000 (04:35 +0000)]
include headers in cmake source, added a script to check for consistency, reporting missing headers & C files.
this is important so IDE's using CMake integration always get blender headers. - QtCreator & MSVC for eg, probably others too.

11 years agoFix:
Matt Ebb [Mon, 29 Nov 2010 01:05:20 +0000 (01:05 +0000)]
[#24170] Camera inside volume error
[#24838] Light inside Volume material drops on it's walls - it may be double

Problem in a previous bugfix commit, reverted back, the original bug is still fixed too.

11 years agofix [#24921] Crash after inserting keyframing UV coords and changing frame in edit...
Campbell Barton [Mon, 29 Nov 2010 00:18:26 +0000 (00:18 +0000)]
fix [#24921] Crash after inserting keyframing UV coords and changing frame in edit mode
zero length arrays were still having their members accessible.

11 years agobugfix [#24947] Animations data replaced by the first animation (fbx exporter)
Campbell Barton [Sun, 28 Nov 2010 23:07:49 +0000 (23:07 +0000)]
bugfix [#24947] Animations data replaced by the first animation (fbx exporter)
this feature was ported from 2.5x but not tested, referring to the wrong object when assigning actions.

11 years agoVariable declaration in code, not allowed!
Ton Roosendaal [Sun, 28 Nov 2010 18:54:43 +0000 (18:54 +0000)]
Variable declaration in code, not allowed!
Also made it NULL, looks nicer than 0 ;)

11 years agoBugfix #24933
Ton Roosendaal [Sun, 28 Nov 2010 18:34:16 +0000 (18:34 +0000)]
Bugfix #24933

Compositor: Texture node only allowed 1 user, with more nodes using it
there was a thread conflict, using same memory for writing values.

Also: brought back the original intention for texture nodes, which is to
be using a "procedural image", not allocating memory for a buffer, but
only allowing to read per pixel. Commit in 2007 (!) allocated full buffers
for texture nodes, without using them even.

11 years ago== Sequencer ==
Peter Schlaile [Sun, 28 Nov 2010 18:23:21 +0000 (18:23 +0000)]
== Sequencer ==

This fixes Orig Dimension display (mostly).
* orx, ory both didn't get calculated, if dimension already matched
* putting them into Strip instead of StripData ment, that using images
  of different dimensions in one strip could lead to incorrect results

Still TODO: on file open, timeline display happens before preview
display which means: orig_width and height are calculated after the
first draw of N-keys dialog. You have to hit refresh (or scrub one
frame) to get the right values displayed.

11 years ago== addons ==
Luca Bonavita [Sun, 28 Nov 2010 18:22:23 +0000 (18:22 +0000)]
== addons ==

After discussing with campbell, I'm adding a menu in the addons panel to help people to find the addons development pages
This should give more visibility to the bf-extensions project so that people know where they can share their scripts "officially".

11 years agoBugfix #24953
Ton Roosendaal [Sun, 28 Nov 2010 16:36:36 +0000 (16:36 +0000)]
Bugfix #24953

Compositor: If scene render size changed, a Texture node didn't get tagged
to re-render, using previous size instead.

11 years agobugfix "Export UV Layout" stalls when saving file in 2.55b
Campbell Barton [Sun, 28 Nov 2010 13:39:39 +0000 (13:39 +0000)]
bugfix "Export UV Layout" stalls when saving file in 2.55b
remove duplicate UVs on export to avoid long ztransp filling times - common on faces which have no assigned UV coords.

11 years agofix for fix [#24955] Generating UV-Images within blender (Alt-N) not possible
Campbell Barton [Sun, 28 Nov 2010 12:38:29 +0000 (12:38 +0000)]
fix for fix [#24955] Generating UV-Images within blender (Alt-N) not possible
We had 3 reports of not being able to add images in editmode which was a workaround for redo in editmode bug.
Rather then having it use operator redo, just give an OK button.

11 years agominor changes to the python api.
Campbell Barton [Sun, 28 Nov 2010 06:03:30 +0000 (06:03 +0000)]
minor changes to the python api.
- pep8 script was giving an error on non utf8 scons source files.
- use PyList_SET_ITEM macro when list type is ensured.
- all mathutils types use subtypes to create new types when available.
- use defines MAT3_UNITY, MAT4_UNITY to initialize unit matrices.

11 years agoDetect Gallium driver. Extend NPoT workaround to opensource drivers.
Guillermo S. Romero [Sat, 27 Nov 2010 19:59:00 +0000 (19:59 +0000)]
Detect Gallium driver. Extend NPoT workaround to opensource drivers.

11 years agoBugfix #21385
Ton Roosendaal [Sat, 27 Nov 2010 19:33:40 +0000 (19:33 +0000)]
Bugfix #21385

Blender MultiLayer openEXR files now save with correct scanline order.
Code also provides backward compatibility. Also thanks to Troy Sobotka!

11 years ago[#24935] Proportional translation size stuck to none
Martin Poirier [Sat, 27 Nov 2010 19:18:13 +0000 (19:18 +0000)]
[#24935] Proportional translation size stuck to none

Adjust hard and soft limits on proportional size operator property.

Prevent zero in old files with reset if under hard limit (in tools settings).

11 years agobugfix [#24944] Crash on attempting to keyframe HSV color
Campbell Barton [Sat, 27 Nov 2010 18:30:56 +0000 (18:30 +0000)]
bugfix [#24944] Crash on attempting to keyframe HSV color
prevent eternal loop

11 years agopython access to driver namespace, rather then have a textblock defined for drivers...
Campbell Barton [Sat, 27 Nov 2010 02:39:51 +0000 (02:39 +0000)]
python access to driver namespace, rather then have a textblock defined for drivers allow scripts to add functions directly.
-, read-only dictionary, edit in-place.
- reset on file load and new file.
- on errors the namespace used to be reset, this should not be needed.

simple example.

  def driverFunc(val):
    return val * val['driverFunc'] = driverFunc

... now all drivers can access this function.

11 years agoconsole text underscore would draw outside the view for larger font sizes.
Campbell Barton [Sat, 27 Nov 2010 00:56:18 +0000 (00:56 +0000)]
console text underscore would draw outside the view for larger font sizes.

11 years agofix for fix r33330, bug [#23118].
Campbell Barton [Sat, 27 Nov 2010 00:23:06 +0000 (00:23 +0000)]
fix for fix r33330, bug [#23118].
combing hair the view matrix wasn't updated so depth comparison was incorrect.

11 years agoParticle draw was calling glColorMaterial(...) after glEnable(GL_COLOR_MATERIAL)...
Campbell Barton [Fri, 26 Nov 2010 23:38:23 +0000 (23:38 +0000)]
Particle draw was calling glColorMaterial(...) after glEnable(GL_COLOR_MATERIAL), this is documented to be incorrect.
On my system it set the ambient color value to 1.0.

11 years agoadded option to turn off Text anti-aliasing in the UI
Michael Fox [Fri, 26 Nov 2010 22:12:46 +0000 (22:12 +0000)]
added option to turn off Text anti-aliasing in the UI
(userpref->system), with a great help from brecht (its been way too long
for me).

However as brecht pointed out that the non-AA text is slightly lareger
then AA'ed Text :S, i did not do anything about this as this commit was
just the option not the text drawing.

this commit also makes it possible to do all kinds of UI textrender options

11 years agoFix #24914: 3D text glitch and crash
Sergey Sharybin [Fri, 26 Nov 2010 18:13:27 +0000 (18:13 +0000)]
Fix #24914: 3D text glitch and crash

Crash was caused by invalid utf8 sequence pasteing from the clipboard.
Prevent memory corruption by giving utf8slen() the same rules of bytes checking
as utf8towchar() does.

11 years agoremove support for rna resolving paths with collection['name'], only support collecti...
Campbell Barton [Fri, 26 Nov 2010 17:25:06 +0000 (17:25 +0000)]
remove support for rna resolving paths with collection['name'], only support collection["name"],
 added r31826.

This is valid python syntax but I rather be strict with data path format else it becomes harder to parse them if we try to support this.
it means checks like fcurve.data_path.startswith('pose.bones["SomeBone"]') isn't ensured to work, since blender uses "" quotes everywhere for keyframe paths I dont think its an advantage to allow users to do it differently.

11 years agoRigid Body Joint Constraint:
Thomas Dinges [Fri, 26 Nov 2010 17:11:16 +0000 (17:11 +0000)]
Rigid Body Joint Constraint:
* RNA fix for my last commit, we want the last 3 items of the array, not the first 3, added get/set functions.

11 years agoUpdate nurb keyindex data when subdividing -- shape key data wouldn't be lost anyway
Sergey Sharybin [Fri, 26 Nov 2010 17:08:22 +0000 (17:08 +0000)]
Update nurb keyindex data when subdividing -- shape key data wouldn't be lost anyway

11 years agofix building blenderplayer and a divide by zero bug with the console view.
Campbell Barton [Fri, 26 Nov 2010 17:07:31 +0000 (17:07 +0000)]
fix building blenderplayer and a divide by zero bug with the console view.

11 years agochange monospace font to be an extern, not good final design but better then loading...
Campbell Barton [Fri, 26 Nov 2010 16:33:42 +0000 (16:33 +0000)]
change monospace font to be an extern, not good final design but better then loading the same font 3 times.
need to load twice still because render may use the font in a thread.

11 years ago"Fix" for [#24934] Particle single user crash
Janne Karhu [Fri, 26 Nov 2010 15:37:08 +0000 (15:37 +0000)]
"Fix" for [#24934] Particle single user crash
* Changing anything related to particle settings shouldn't be allowed when in particle mode, so disabled the buttons in ui.

11 years agoBug fix: voxeldata texture extension didn't work.
Janne Karhu [Fri, 26 Nov 2010 14:33:44 +0000 (14:33 +0000)]
Bug fix: voxeldata texture extension didn't work.
* Code was using tex->extend instead of vd->extend.

11 years agolasso select wasn't comparing the depth with particle selection, where border and...
Campbell Barton [Fri, 26 Nov 2010 13:40:47 +0000 (13:40 +0000)]
lasso select wasn't comparing the depth with particle selection, where border and circle select do.

11 years agobugfix [#23118] Blender freezes when combing hair - OS X path changes related?
Campbell Barton [Fri, 26 Nov 2010 12:57:35 +0000 (12:57 +0000)]
bugfix [#23118] Blender freezes when combing hair - OS X path changes related?
- glReadPixels() was running to get the depth on each pixel, this works fine one some cards but was locking up on OSX.
- Replace glReadPixels() call with a single call to view3d_update_depths() right after view3d_validate_backbuf(), so the depths are only read once.
- Unrelated to the changes above, but should improve performance: view3d_validate_backbuf() was being called on every redraw while combing, now only call once when combing starts.

11 years agoremove calls to update the depth buffer while in particle editmode, this calls glRead...
Campbell Barton [Fri, 26 Nov 2010 12:38:42 +0000 (12:38 +0000)]
remove calls to update the depth buffer while in particle editmode, this calls glReadPixels() for the viewport which is slow on some systems and the depths are currently not used.

11 years agofreeing all free GPU buffers every frame could be a performance issue and is not...
Lukas Steiblys [Fri, 26 Nov 2010 11:20:03 +0000 (11:20 +0000)]
freeing all free GPU buffers every frame could be a performance issue and is not necessary

11 years agofollow up of "Bugfix #23576" (Logic UI) - replacing hardcoded values by RNA_struct_is...
Dalai Felinto [Fri, 26 Nov 2010 03:58:31 +0000 (03:58 +0000)]
follow up of "Bugfix #23576" (Logic UI) - replacing hardcoded values by RNA_struct_is_a + making rna_sensor future proof

11 years agoFix #24855: disabling shadows didn't disable AO/env with ray transparency
Brecht Van Lommel [Fri, 26 Nov 2010 03:50:14 +0000 (03:50 +0000)]
Fix #24855: disabling shadows didn't disable AO/env with ray transparency
and AO multiply mode.

11 years agoBGE Bugfix: [#24926] Sensor 'Radar' les axes X+ et Y+ ont été inversé. (oui, a french...
Dalai Felinto [Fri, 26 Nov 2010 03:37:08 +0000 (03:37 +0000)]
BGE Bugfix: [#24926] Sensor 'Radar' les axes X+ et Y+ ont été inversé. (oui, a french bug report :)
we were using SENSOR_RAY for the radar sensor axis. However the Ray axis is inverted (God knows why) so I created a set of defines only for radar sensor.

Also I thought it was a good idea to replace some hardcoded values in Radar and Ray codes by their defines in DNA_sensor_types.h (similar to what Benoit did for Armature Sensor, so I see no problem on that).

11 years agoFix #24923: tweak falloff strength tooltip to apply both to AO and indirect.
Brecht Van Lommel [Fri, 26 Nov 2010 03:31:12 +0000 (03:31 +0000)]
Fix #24923: tweak falloff strength tooltip to apply both to AO and indirect.

11 years agoFix #24775: boolean modifier crash in rendering on Mac. Problem was that this
Brecht Van Lommel [Fri, 26 Nov 2010 03:26:57 +0000 (03:26 +0000)]
Fix #24775: boolean modifier crash in rendering on Mac. Problem was that this
ran out of stack memory, now it passes some arguments by reference instead of
by value to use less stack space.

11 years agofix [#24900] Texture paint mode broken
Campbell Barton [Fri, 26 Nov 2010 00:52:37 +0000 (00:52 +0000)]
fix [#24900] Texture paint mode broken
own commit r33070 broke this.

11 years agoATI X1xxx gfx cards (R500 chipset) lack full support for npot textures although they...
Janne Karhu [Thu, 25 Nov 2010 22:15:04 +0000 (22:15 +0000)]
ATI X1xxx gfx cards (R500 chipset) lack full support for npot textures although they report the GLEW_ARB_texture_non_power_of_two extension.

11 years agoSmoke domain resolutions were calculated wrong for non-cube domains in some cases.
Janne Karhu [Thu, 25 Nov 2010 22:13:40 +0000 (22:13 +0000)]
Smoke domain resolutions were calculated wrong for non-cube domains in some cases.

11 years agobugfix while looking into [#24900], color wasn't being set for face-mask mode.
Campbell Barton [Thu, 25 Nov 2010 21:59:12 +0000 (21:59 +0000)]
bugfix while looking into [#24900], color wasn't being set for face-mask mode.

11 years agobone roll recalculate, option to use active bones Z axis.
Campbell Barton [Thu, 25 Nov 2010 20:50:50 +0000 (20:50 +0000)]
bone roll recalculate, option to use active bones Z axis.

11 years agobugfix [#24907] bone roll z up broken and python script showing correct method to...
Campbell Barton [Thu, 25 Nov 2010 19:49:07 +0000 (19:49 +0000)]
bugfix [#24907] bone roll z up broken and python script showing correct method to roll bones
from Josh Wedlake (joshwedlake), who provided a reference script used to apply changes in ED_rollBoneToVector().

- Obvious bug fixed where Z-Up didnt work right.
- More align axis options to Recalculate Roll operator: X/Y/Z/View Axis & Negate.
- Axis Only option, ignore the axis direction, use shortest rotation to align bones.

ED_rollBoneToVector() changes:
- would give bad roll when the axis wasn't normalized or perpendicular to the bone.
  some callers accounted for this but not all.
- option to align to the axis but not the direction.

11 years agoFixed bug with Text menu in font edit mode
Sergey Sharybin [Thu, 25 Nov 2010 18:22:59 +0000 (18:22 +0000)]
Fixed bug with Text menu in font edit mode

11 years agofix for
Lukas Steiblys [Thu, 25 Nov 2010 17:36:03 +0000 (17:36 +0000)]
fix for
[#24442] GLSL + VBOs

11 years agonew vectors that were the result of functions or operators were not using the same...
Campbell Barton [Thu, 25 Nov 2010 16:00:06 +0000 (16:00 +0000)]
new vectors that were the result of functions or operators were not using the same subclass as the vectors they were derived from.

11 years agobugfix [#24916] Blender Crash after inappropriate Merge-Command
Campbell Barton [Thu, 25 Nov 2010 15:03:36 +0000 (15:03 +0000)]
bugfix [#24916] Blender Crash after inappropriate Merge-Command

11 years agoRedraw 3d view when new object was added (NC_OBJECT|NA_ADDED notifier)
Sergey Sharybin [Thu, 25 Nov 2010 14:56:02 +0000 (14:56 +0000)]
Redraw 3d view when new object was added (NC_OBJECT|NA_ADDED notifier)

This fixes one issue from #24914: 3D text glitch and crash ("delayed" 3d view refresh)

11 years ago== console ==
Luca Bonavita [Thu, 25 Nov 2010 14:55:03 +0000 (14:55 +0000)]
== console ==

- banner formatting

== sphinx doc ==

- put the example below the documentation itself

11 years agofound some errors while looking into bug #24909, in exceptional cases where the PNG...
Campbell Barton [Thu, 25 Nov 2010 14:00:11 +0000 (14:00 +0000)]
found some errors while looking into bug #24909, in exceptional cases where the PNG could not be saved it could leak memory and not close the file.

11 years agoPossible fix for the issue that came up in [#24890] Vector Blur node is Buggy
Janne Karhu [Thu, 25 Nov 2010 11:38:55 +0000 (11:38 +0000)]
Possible fix for the issue that came up in [#24890] Vector Blur node is Buggy
* Apparently some compilers don't respect proper operator precedence, so added some parentheses around to make inline conditionals unambiguous.

11 years agoFix polling order for ui panels in netrender.
Martin Poirier [Thu, 25 Nov 2010 01:25:47 +0000 (01:25 +0000)]
Fix polling order for ui panels in netrender.

Was broken by r33071 but order wasn't optimal even before. Should be snappier now (at least only check if correct render engine is selected).

11 years agoSpline IK Bugfix:
Joshua Leung [Wed, 24 Nov 2010 23:36:36 +0000 (23:36 +0000)]
Spline IK Bugfix:

Binding code had off-by-1 error, which meant that when "Even Divisions" was disabled the length of the wrong bone would get used.

This error was most noticeable when the lengths of the bones were quite different - for example, a chain with 3 bones of increasing length. Thanks to "Julius" on BlenderArtists for catching this. Cheers!


Also, simplified the binding code loop a bit to prevent this sort of error in future.

11 years agoOSX: Patch associated with Python update to 3.1.2.
Damien Plisson [Wed, 24 Nov 2010 21:39:07 +0000 (21:39 +0000)]
OSX: Patch associated with Python update to 3.1.2.
Thanks to Jens Verwiebe for making the build and the patch to make the Game Engine build again with it.

11 years agodrivers could reference invalid index values outside the bounds of the array.
Campbell Barton [Wed, 24 Nov 2010 21:33:07 +0000 (21:33 +0000)]
drivers could reference invalid index values outside the bounds of the array.

11 years agodefine UNUSED() locally for mmap_win
Campbell Barton [Wed, 24 Nov 2010 20:56:25 +0000 (20:56 +0000)]
define UNUSED() locally for mmap_win

11 years agofix for crash introduced r33257, also tag some vars as unused.
Campbell Barton [Wed, 24 Nov 2010 20:13:37 +0000 (20:13 +0000)]
fix for crash introduced r33257, also tag some vars as unused.

11 years agofix [#24893] Minor error message glitch
Campbell Barton [Wed, 24 Nov 2010 19:06:56 +0000 (19:06 +0000)]
fix [#24893] Minor error message glitch

11 years agobugfix [#24884] Loading any preset leads to crash
Campbell Barton [Wed, 24 Nov 2010 18:37:54 +0000 (18:37 +0000)]
bugfix [#24884] Loading any preset leads to crash
caused by own recent commit. update uv operator template too.

11 years agobugfix [#24887] Crash on snapping verts on other object
Campbell Barton [Wed, 24 Nov 2010 18:02:35 +0000 (18:02 +0000)]
bugfix [#24887] Crash on snapping verts on other object
now the derived mesh and the editmesh will always have matching faces.

11 years agoclose addon files, Py3.2 now complains when files are left open.
Campbell Barton [Wed, 24 Nov 2010 17:29:22 +0000 (17:29 +0000)]
close addon files, Py3.2 now complains when files are left open.

11 years agoBugfix #24887
Ton Roosendaal [Wed, 24 Nov 2010 17:13:02 +0000 (17:13 +0000)]
Bugfix #24887

Crash in snapping, bvh tree. Wrong check for numFaces here.
Fixed the crash by adding test for face pointer, but not sure
what the coder intended here. Needs investigation, left XXX remark.

11 years agofix for crash canceling fly mode.
Campbell Barton [Wed, 24 Nov 2010 16:54:18 +0000 (16:54 +0000)]
fix for crash canceling fly mode.

11 years agoBugfix #24847
Ton Roosendaal [Wed, 24 Nov 2010 16:34:38 +0000 (16:34 +0000)]
Bugfix #24847

When report error was drawn in info header, using border select
or paint brushes flickered. Was caused by Triple Buffer method
not checking for correct redraw case.

Also made report redraws less aggressive, it was drawing the info
header all over with 50 FPS for 10 seconds. Made it 20 FPS, and
added code to only send notifiers for actual changes.

As todo note for future: animated UI options could get better
caching to cope with slower refreshes.

11 years agobugfix [#24882] fbx exporter Krash, screw objects and animations
Campbell Barton [Wed, 24 Nov 2010 15:57:59 +0000 (15:57 +0000)]
bugfix [#24882] fbx exporter Krash, screw objects and animations
fixed remaining issue with win32 paths.

11 years agoTypo in commit... for some reason rna_xx.c files compile without warning?
Ton Roosendaal [Wed, 24 Nov 2010 15:05:54 +0000 (15:05 +0000)]
Typo in commit... for some reason rna_xx.c files compile without warning?

11 years agoadd a window manager to files loaded from 2.4x in background mode. (partial fix for...
Campbell Barton [Wed, 24 Nov 2010 14:40:03 +0000 (14:40 +0000)]
add a window manager to files loaded from 2.4x in background mode. (partial fix for [#24882]).