9 years agoquiet some clang warnings & fix for bugs in exceptional cases.
Campbell Barton [Sat, 23 Apr 2011 12:57:03 +0000 (12:57 +0000)]
quiet some clang warnings & fix for bugs in exceptional cases.
- ghost C api, BLI_get_folder_version() could assign garbage values.
- pointcache ptcache_find_frames_around() had a superfluous NULL check which would have crashed anyway if actually NULL.

9 years agoBugfix [#27126] Ctrl 0/1/2/3/4 not working in edit mode
Joshua Leung [Sat, 23 Apr 2011 11:20:30 +0000 (11:20 +0000)]
Bugfix [#27126] Ctrl 0/1/2/3/4 not working in edit mode

Keymaps for subdivision_set operator were only added for Object mode.
Since this is useful for meshes in particular, added these in EditMode
keymap for mesh editing too.

9 years agoBugfix [#27134] Minor bug in the name: property Constraint.is_valid
Joshua Leung [Sat, 23 Apr 2011 11:13:36 +0000 (11:13 +0000)]
Bugfix [#27134] Minor bug in the name: property Constraint.is_valid
has label "Disabled"

"is_valid" RNA property for constraints had the property name
inverted, but the displayed name and tooltips were not inverted too

9 years agoSmall type-tweaks (int being returned as float)
Joshua Leung [Sat, 23 Apr 2011 11:09:24 +0000 (11:09 +0000)]
Small type-tweaks (int being returned as float)

9 years agoFix #26959: change selection of shapekeys in edit mode causes mesh deformity of a key
Sergey Sharybin [Sat, 23 Apr 2011 09:25:34 +0000 (09:25 +0000)]
Fix #26959: change selection of shapekeys in edit mode causes mesh deformity of a key

Vertex offset, which was used to update referenced keys was calculating between
editmesh (which represents shapekey data) and base mesh (ob->mesh) which represents
Bases key.

This commit fixes bug with incorrect ofsset calculation for case when some keys
got other (not Basis) keys as relative key by calculating offset using EditMesh
(new shapekey data) and keyblock data (which was used to create EditMesh when
entering edit mode).

This commit shouldn't lead to regressions, but maybe there's something else
which should be fixed for such kinda complicated cases -- more testing would
be welcome.

9 years agoSculpting on shapekeys
Sergey Sharybin [Sat, 23 Apr 2011 09:07:46 +0000 (09:07 +0000)]
Sculpting on shapekeys

All this work with sculpting on armatured/deformed mesh allowed to
implement sculpting on non-locked keys very easy -- just use the same
approach of propagating offsets from deformed PBVH to "sculpting layer".

- If key is locked, then old logic would be used.
- If there's multires modifier enabled, sculpting would happen on multires.

9 years agoSend NA_EDITED notifier when changing tab width in text space properties
Sergey Sharybin [Sat, 23 Apr 2011 08:52:27 +0000 (08:52 +0000)]
Send NA_EDITED notifier when changing tab width in text space properties

Now text editor refresh correct and there's no more glitches with messed up
syntax highlighting.

9 years agoColor info in node editor backdrop now supports color management.
Lukas Toenne [Sat, 23 Apr 2011 08:30:28 +0000 (08:30 +0000)]
Color info in node editor backdrop now supports color management.

9 years agofix for possible (but unlikely) crash.
Campbell Barton [Sat, 23 Apr 2011 08:02:29 +0000 (08:02 +0000)]
fix for possible (but unlikely) crash.
added NULL check in case nodeAddNodeType() is given an invalid type or the dynamic node cant be found.

9 years agofix for possible crash using an un-initialized pointer when getting a vertex weight...
Campbell Barton [Sat, 23 Apr 2011 07:28:30 +0000 (07:28 +0000)]
fix for possible crash using an un-initialized pointer when getting a vertex weight from a non-mesh/lattice object.

9 years agoFix for group output memory leak, bug #27104. This happens when an internal node...
Lukas Toenne [Sat, 23 Apr 2011 07:21:10 +0000 (07:21 +0000)]
Fix for group output memory leak, bug #27104. This happens when an internal node in a group has multiple output buffers, but only some of them are used. Then all the buffers would be created, but the unlinked outputs were not correctly tagged for freeing after group execution.

9 years agoskip pose slide if the RNA value isn't found.
Campbell Barton [Sat, 23 Apr 2011 07:04:50 +0000 (07:04 +0000)]
skip pose slide if the RNA value isn't found.

9 years agofix for using enter on menus which load files:
Campbell Barton [Sat, 23 Apr 2011 03:31:27 +0000 (03:31 +0000)]
fix for using enter on menus which load files:
 commonly Ctrl+N,Enter or Ctrl+O,Enter

9 years agocancelling bake wasn't freeing the bake mask.
Campbell Barton [Fri, 22 Apr 2011 16:47:17 +0000 (16:47 +0000)]
cancelling bake wasn't freeing the bake mask.

9 years agoView Dolly Operator: Ctrl+Shift+MMB.
Campbell Barton [Fri, 22 Apr 2011 15:34:07 +0000 (15:34 +0000)]
View Dolly Operator: Ctrl+Shift+MMB.

Recently there were 2 reports about zoom not working right because at some point you can't zoom in any further.

This is not actually a bug with zoom but a limitation in blender that there is no way to move the viewpoint forward (unless you count rotate 90d, pan, rotate back which is a crummy workaround).

So adding view dolly operator:
- Supports zoom to mouse position setting.
- Supports dolly hoz/vert, invert setting.
- Moves by a fraction of the view 'dist', so the zoom distance my be roughly in proportion to the scale of objects in the scene.

only used in perspective view since this is not useful in camera/ortho view.

9 years agozoom operator.
Campbell Barton [Fri, 22 Apr 2011 14:47:35 +0000 (14:47 +0000)]
zoom operator.
- continue zoom now uses the same options as dolly (hoz/vert & invert).
- remove event mouse coord hack to bypass touchpad zoom invert, instead pass invert as an argument.

9 years agobuildbot:
Sergey Sharybin [Thu, 21 Apr 2011 19:01:31 +0000 (19:01 +0000)]

Fixed typo for 64bit blenderplayer which caused undefined symbol gzopen64

9 years agobugfix [#27091] Add new vertex at wrong position ( bpy.ops.mesh.dupli_extrude_cursor...
Campbell Barton [Thu, 21 Apr 2011 18:33:30 +0000 (18:33 +0000)]
bugfix [#27091] Add new vertex at wrong position ( bpy.ops.mesh.dupli_extrude_cursor() ) 2

Ctrl+Click on mesh or curve view was using the selected points location or the cursors.
if either of these was behind the view it would add the point at (0, 0, 0).

now fallback to the view orbit pivot, added this option as an argument to view3d_get_view_aligned_coordinate().

9 years agopass even mouse coords value as const so its not edited, view3d_get_view_aligned_coor...
Campbell Barton [Thu, 21 Apr 2011 17:25:58 +0000 (17:25 +0000)]
pass even mouse coords value as const so its not edited, view3d_get_view_aligned_coordinate() could modify the event->mval.

9 years agoack, should have done this before tagging else will be incorrect.
Campbell Barton [Thu, 21 Apr 2011 16:16:12 +0000 (16:16 +0000)]
ack, should have done this before tagging else will be incorrect.

9 years agoconverted more mixed tab/space indentations to tabs. only whitespace changes.
Campbell Barton [Thu, 21 Apr 2011 15:53:30 +0000 (15:53 +0000)]
converted more mixed tab/space indentations to tabs. only whitespace changes.

9 years agowhitespace only, no functional change mixed tabs/spaces --> tabs. v2.57a
Campbell Barton [Thu, 21 Apr 2011 13:11:51 +0000 (13:11 +0000)]
whitespace only, no functional change mixed tabs/spaces --> tabs.

9 years agoBugfix [#27095] B-Bone doesn´t resize correctly with numeric input
Joshua Leung [Thu, 21 Apr 2011 12:48:07 +0000 (12:48 +0000)]
Bugfix [#27095] B-Bone doesn´t resize correctly with numeric input

B-Bone resizing was acting more like translation than resizing when using numeric input. Added the flag to set all xyz values to same value when using numeric input

9 years agopatch [#27094] Fix for property names in sunsky presets
Campbell Barton [Thu, 21 Apr 2011 12:14:10 +0000 (12:14 +0000)]
patch [#27094] Fix for property names in sunsky presets
from Ejner Fergo (ejnersan)

9 years agopatch [#27070] cmake fix for nmake builds
Campbell Barton [Thu, 21 Apr 2011 12:07:40 +0000 (12:07 +0000)]
patch [#27070] cmake fix for nmake builds

9 years agore-compress png's (save some space)
Campbell Barton [Thu, 21 Apr 2011 10:03:45 +0000 (10:03 +0000)]
re-compress png's (save some space)
  optipng -o7 -zw 512 -zm 9 -i0 *.png

9 years agoFix for fix for the bugfix :)
Ton Roosendaal [Thu, 21 Apr 2011 09:43:38 +0000 (09:43 +0000)]
Fix for fix for the bugfix :)

Just cleaned the code/order here and added comments why this works.
I should have known it... thanks Andrea for quick action!

9 years agofollowing on from last commit r36263.
Campbell Barton [Thu, 21 Apr 2011 09:38:09 +0000 (09:38 +0000)]
following on from last commit r36263.
copying metaball, lattice and armature datablocks while in editmode could segfault when they were freed, NULL these pointers on copy.

9 years agofix [#27096] Segmentation Fault trying to export DirectX with specific model
Campbell Barton [Thu, 21 Apr 2011 09:03:04 +0000 (09:03 +0000)]
fix [#27096] Segmentation Fault trying to export DirectX with specific model
copying a mesh in editmode didnt NULL the edit_mesh pointer.

9 years agoremove checks on deprecated multires pointer.
Campbell Barton [Thu, 21 Apr 2011 08:55:10 +0000 (08:55 +0000)]
remove checks on deprecated multires pointer.

9 years agocmake - install icons into $PREFIX/share/icons/hicolor/ rather then $PREFIX/share...
Campbell Barton [Thu, 21 Apr 2011 06:37:54 +0000 (06:37 +0000)]
cmake - install icons into $PREFIX/share/icons/hicolor/ rather then $PREFIX/share/pixmaps/, also move blender icon into 'apps' dir.

9 years agopatch from Jakub Steiner for freedesktop icons [#27086] install a high resolution...
Campbell Barton [Thu, 21 Apr 2011 06:27:39 +0000 (06:27 +0000)]
patch from Jakub Steiner for freedesktop icons [#27086] install a high resolution launcher icon

9 years agominor changes
Campbell Barton [Thu, 21 Apr 2011 05:49:47 +0000 (05:49 +0000)]
minor changes
- remove some warnings
- fix typos
- cmake allow in-source build (when WITH_IN_SOURCE_BUILD is defined)
- cmake, use an explicit list of rna files (don't glob)

9 years agoBugfix [#27090] Available keying set fails in armature pose mode
Joshua Leung [Thu, 21 Apr 2011 01:21:28 +0000 (01:21 +0000)]
Bugfix [#27090] Available keying set fails in armature pose mode

A change in the poll callback that Available KeyingSet used to use
restricted its use to Object-mode only, while this could also be
useful in Pose Mode (though it would only affect all channels there).

Made this use a custom poll callback now that tests for whether the
active object has an action. This does mean that if you select a bunch
of objects with animation data, but the active object doesn't have it,
then the keyingset will fail to fire, but that's been marked as a todo
in the code.

9 years agofix [#27084] Crash when chosing non-voxel data file in voxel data texture input
Campbell Barton [Thu, 21 Apr 2011 00:28:05 +0000 (00:28 +0000)]
fix [#27084] Crash when chosing non-voxel data file in voxel data texture input
also found loading voxel textures wasn't closing files it opened.

9 years agofix [#27083] Crash on setting Voxel resolution below -3 in 8bit raw texture settings
Campbell Barton [Wed, 20 Apr 2011 23:21:26 +0000 (23:21 +0000)]
fix [#27083] Crash on setting Voxel resolution below -3 in 8bit raw texture settings

9 years agofix crash with lots of operators when running "blender -d". Easy case to reproduce...
Andrea Weikert [Wed, 20 Apr 2011 20:46:02 +0000 (20:46 +0000)]
fix crash with lots of operators when running "blender -d". Easy case to reproduce, just try to delete default cube.

Temporary hack to prevent crasher, likely caused by rev. 36242.

9 years agoInternal need_exec tagging for group nodes, fixes #27034. Non-compositor node trees...
Lukas Toenne [Wed, 20 Apr 2011 20:31:43 +0000 (20:31 +0000)]
Internal need_exec tagging for group nodes, fixes #27034. Non-compositor node trees (texture and material) only use the need_exec flag to exclude cyclic dependencies, ugly double use of that flag. Oh well, hopefully can replace this altogether one day ;)

9 years agoBug fix: "make fur" gave errors with multiple selected objects.
Janne Karhu [Wed, 20 Apr 2011 17:51:56 +0000 (17:51 +0000)]
Bug fix: "make fur" gave errors with multiple selected objects.
* Also some code changes for "make smoke" and "make fluid" to suppress some python messages that were printed to the console.

9 years agoFix for [#27075] Explode Modifier - Apply as Shape impossible
Janne Karhu [Wed, 20 Apr 2011 17:15:33 +0000 (17:15 +0000)]
Fix for [#27075] Explode Modifier - Apply as Shape impossible
* Explode modifier was flagged as "nonconstructive", so the "apply as shape" option was shown. And yes I know exploding things probably isn't usually considered as very constructive, but.. :P

9 years agoBugfix #27026
Ton Roosendaal [Wed, 20 Apr 2011 16:19:49 +0000 (16:19 +0000)]
Bugfix #27026

Outliner objects showed "active" or "selected" in confusing
ways. Now the display is simply binary, and more in line with
how other items in outliner draw:

- text is white = item is active
- color circle behind icon: shows selection state

9 years agoupdate tooltip since this fixes paths from newer versions.
Campbell Barton [Wed, 20 Apr 2011 14:47:00 +0000 (14:47 +0000)]
update tooltip since this fixes paths from newer versions.

9 years agofix [#27072] Calling bpy.utils.blend_paths(True) results in segmantaion fault since...
Campbell Barton [Wed, 20 Apr 2011 12:55:42 +0000 (12:55 +0000)]
fix [#27072] Calling bpy.utils.blend_paths(True) results in segmantaion fault since 2.56

9 years agoBugfix #27044
Ton Roosendaal [Wed, 20 Apr 2011 12:30:13 +0000 (12:30 +0000)]
Bugfix #27044

Enter or exit localview changes bitflags (layers) in Objects, and should get an
undo push for that reason.

9 years agoavoid calling newdataadr() on NULL vertex groups, gives a small speedup on loading...
Campbell Barton [Wed, 20 Apr 2011 12:06:23 +0000 (12:06 +0000)]
avoid calling newdataadr() on NULL vertex groups, gives a small speedup on loading with files that have many empty groups.

9 years agoFix [#26884] Console is not hidden when start blender
Nathan Letwory [Wed, 20 Apr 2011 12:04:07 +0000 (12:04 +0000)]
Fix [#26884] Console is not hidden when start blender
reported by Michael R

Don't print the error message, as it isn't very useful. If there is no Quicktime in Blender GUI in a build that has support enabled, it means that the user hasn't installed Quicktime.

9 years agoBugfix #27058
Ton Roosendaal [Wed, 20 Apr 2011 11:15:58 +0000 (11:15 +0000)]
Bugfix #27058

Top bar: Add -> Mesh -> UV Sphere + Enter crashed.
It didn't crash with leftmouse, but that was coincidentally working.

Menus were freeing modal handlers in Window, while handlers were still
in use. Fix provides to tag handlers for being freed now.

Will add on my attention list for more elaborate checking work here, for
upcoming 2.57a I rather stick to minimal change in code here.

9 years agotested with a very large blend file 600mb. - from [#27002].
Campbell Barton [Wed, 20 Apr 2011 10:50:56 +0000 (10:50 +0000)]
tested with a very large blend file 600mb. - from [#27002].

without this check the file took 4m, 40sec to load, with the check it takes ~3.3sec.

9 years agoBugfix [#27054] 2.57 icons and buttons aren't perfectly centered
Joshua Leung [Wed, 20 Apr 2011 10:10:07 +0000 (10:10 +0000)]
Bugfix [#27054] 2.57 icons and buttons aren't perfectly centered

This seems to make things look a bit better. What a difference 1px

9 years agoUpgrade for pixel color info in image editor and compositor backdrop. Next to the...
Lukas Toenne [Wed, 20 Apr 2011 09:49:32 +0000 (09:49 +0000)]
Upgrade for pixel color info in image editor and compositor backdrop. Next to the RGB color values there is now a small rectangle displaying the actual color under the mouse cursor. In addition to that the HSV and luminance values are also displayed.

9 years agowhile looking into [#27057] noticed when the view and the transform center are 0...
Campbell Barton [Wed, 20 Apr 2011 09:46:45 +0000 (09:46 +0000)]
while looking into [#27057] noticed when the view and the transform center are 0,0,0 it gives NAN values.

9 years agoThis was causing too many problems. Better to just not enable this for
Joshua Leung [Wed, 20 Apr 2011 09:41:44 +0000 (09:41 +0000)]
This was causing too many problems. Better to just not enable this for
now. There are really many good uses for this anyway.

9 years agoFix #27014: ctrl-A, ctrl-C, ctrl-V breaks formatting of script
Sergey Sharybin [Wed, 20 Apr 2011 07:44:42 +0000 (07:44 +0000)]
Fix #27014: ctrl-A, ctrl-C, ctrl-V breaks formatting of script

This bug was caused by tabs->spaces conversion. Change pate-ing logic to
paste buffer AS-IS (without any conversions).

This commit also fixes undo-ing  block deletion which contains tabs when
"Tabs as spaces" is toggled on. Also, markes shouldn't be moved after
pasteing new buffer.

9 years agoedit definitions to use const for non modified args, also correct incorrect definitio...
Campbell Barton [Wed, 20 Apr 2011 06:47:16 +0000 (06:47 +0000)]
edit definitions to use const for non modified args, also correct incorrect definition for clip_line_plane().

9 years agoBugfix for #26795 and #26917, Fix a bug that cause the radar sensor to break
Erwin Coumans [Wed, 20 Apr 2011 04:55:58 +0000 (04:55 +0000)]
Bugfix for #26795 and #26917, Fix a bug that cause the radar sensor to break
Never memset(&ob, 0,sizeof(class)) when there is a constructor, it overrides all memory.
The problem was that the memset(0) was setting the scaling to (0,0,0), the height of the cone became 'infinity'
so GJK would iterate 'MAX_ITER' without converging due to this #NAN value

9 years agofix [#27006] Apply Scale at a B-Bone Skeleton causes rescale of B-Bones and offset...
Campbell Barton [Wed, 20 Apr 2011 04:11:12 +0000 (04:11 +0000)]
fix [#27006] Apply Scale at a B-Bone Skeleton causes rescale of B-Bones and offset of attached objects

9 years agobugfix where separating the armature would also separate the active-unselected bone...
Campbell Barton [Wed, 20 Apr 2011 03:05:19 +0000 (03:05 +0000)]
bugfix where separating the armature would also separate the active-unselected bone because editmode enabled the selection when toggled.

9 years agominor cleanup & replace inline armature separate pchan searches with BLI_findstring...
Campbell Barton [Wed, 20 Apr 2011 02:56:51 +0000 (02:56 +0000)]
minor cleanup & replace inline armature separate pchan searches with BLI_findstring(), no functional changes.

9 years agofix for crash when loading testfile from report [#27002].
Campbell Barton [Wed, 20 Apr 2011 01:21:55 +0000 (01:21 +0000)]
fix for crash when loading testfile from report [#27002].
error in r36222, also move AnimData *adt definitions inline to ensure they don't get mis-used across different ID types.

9 years agofix [#26967] separate mesh with p crashes blender
Campbell Barton [Tue, 19 Apr 2011 23:52:14 +0000 (23:52 +0000)]
fix [#26967] separate mesh with p crashes blender
copying ID properties assumed each property was allocated separately which isnt the case for IDP_Arrays.

9 years agoFix for [#27038] Bugs when linking particles/collision/softbody modifiers
Janne Karhu [Tue, 19 Apr 2011 16:30:55 +0000 (16:30 +0000)]
Fix for [#27038] Bugs when linking particles/collision/softbody modifiers
* Collision modifiers are disabled here by intention, but particles and softbody were copied the wrong way over :)
* On a further note I don't really get this whole "link modifiers" thing as it just copies the modifiers. As modifiers aren't ID blocks there's no sense in calling this linking!
* Secondly I don't think particles, smoke etc should be considered as modifiers here at all, meaning they shouldn't be linked/copied. These "modifiers" only read the mesh data at a certain location of the stack, but don't actually modify the mesh in any way (more info here

9 years agoCorrected updating inside edited groups, fix for #27018. This was caused by edit...
Lukas Toenne [Tue, 19 Apr 2011 15:15:50 +0000 (15:15 +0000)]
Corrected updating inside edited groups, fix for #27018. This was caused by edit updates being restricted to the actual node. Edit functions now should use the generic snode_tag_changed, which also updates all instances of the currently edited group.

9 years agoBugfix 26936
Ton Roosendaal [Tue, 19 Apr 2011 14:36:26 +0000 (14:36 +0000)]
Bugfix 26936

EditMode mesh: tool "Mesh Rip Move" shouldnt be in the toolbar.
The tool was coded to use the mouse position next to the selection.
The rip then happens correctly after pressing V and move mouse away
from selection.

9 years agoBugfix [#25960] .1 Action Editor header doesn't update when entering
Joshua Leung [Tue, 19 Apr 2011 13:17:16 +0000 (13:17 +0000)]
Bugfix [#25960] .1 Action Editor header doesn't update when entering
tweakmode on NLA Strips

9 years agoFix for [#27008] Replacing particle hair with group objects - viewport does not match...
Janne Karhu [Tue, 19 Apr 2011 13:06:08 +0000 (13:06 +0000)]
Fix for [#27008] Replacing particle hair with group objects - viewport does not match renderoutput.
* Object size was determined from the first and second last cache key by accident, when it should have been first and last cache keys that were used.

9 years agoWhitespace/typos
Joshua Leung [Tue, 19 Apr 2011 13:02:49 +0000 (13:02 +0000)]

9 years agoBugfix [#25960] Action/NLA Editor issues with animdata context
Joshua Leung [Tue, 19 Apr 2011 13:01:50 +0000 (13:01 +0000)]
Bugfix [#25960] Action/NLA Editor issues with animdata context

Actions now get tagged with an ID-code, which is used to determine
what ID-blocks they can be assigned to. This ensures that material
actions cannot be assigned to the object-level for example.

* Action lists in general will now show only the actions that can be
set for that particular slot. This prevents selection of invalid
actions, and helps cut down the list of actions.
** An exception here is the Add Action Clip in NLA Editor, which will
show all actions but will only add where appropriate. This is because
it's not easy/possible to tell in advance which blocktypes to filter
for when building this list. (TODO?)

* The "Action Editor" is now strictly for object-level action
editing+setting now. This avoids repeateded confusion by people who
try using this to view their shapekey actions, which should go to the
Shape Key Editor instead!
** A context switcher for the legitimate times where this capability
might come in handy is still being investigated.

* "Floating" actions (i.e. actions in some action_library.blend) are
NOT able to be automatically tagged until they are assigned to some
datablocks (i.e. loaded onto the rig + played back once). It is
possible to write scripts that check for certain RNA-paths and "guess"
what datablocks they work on, but it is recommended that you load up
the Datablocks Viewer, and go through such actions by hand, setting
the "ID Root Type" property as appropriate per action.

9 years agoBugfix #26977 + Patch by Harley Acheson
Ton Roosendaal [Tue, 19 Apr 2011 11:17:29 +0000 (11:17 +0000)]
Bugfix #26977 + Patch by Harley Acheson

Using search for operators showed ambigious names like "Duplicate" or "Delete".
Default names should give at least a descriptive label. In case operators
are collected in a group name-shortening should be handled separaly.

9 years agopatch [#26978] Minor Spelling Mistakes in Editor Operators
Campbell Barton [Tue, 19 Apr 2011 10:35:24 +0000 (10:35 +0000)]
patch [#26978] Minor Spelling Mistakes in Editor Operators
+ some errors I noticed.

9 years agoSome strings to store ID names were too small, could cause stack corruption.
Campbell Barton [Tue, 19 Apr 2011 06:59:49 +0000 (06:59 +0000)]
Some strings to store ID names were too small, could cause stack corruption.
corrected these and replaced 'sizeof(((ID *)NULL)->name)-2' with 'MAX_ID_NAME-2'.

9 years agonoticed a problem with rendering non-active scenes in the node editor.
Campbell Barton [Tue, 19 Apr 2011 06:37:29 +0000 (06:37 +0000)]
noticed a problem with rendering non-active scenes in the node editor.
- the frame from the current scene wasn't used - whereas with rendering it is, set the current frame as is done when node rendering.
- camera switching also failed, added a call to it.

9 years agofix [#26900] Problem with active camera between scenes
Campbell Barton [Tue, 19 Apr 2011 06:15:13 +0000 (06:15 +0000)]
fix [#26900] Problem with active camera between scenes

9 years agofix [#27016] Add new vertex at wrong position ( bpy.ops.mesh.dupli_extrude_cursor() )
Campbell Barton [Tue, 19 Apr 2011 05:34:05 +0000 (05:34 +0000)]
fix [#27016] Add new vertex at wrong position ( bpy.ops.mesh.dupli_extrude_cursor() )

also found curve click-extrude was always aligning the new points depth to (0,0,0), now work the same as mesh edit - align to the selected point or the cursor if none are seleted.

9 years agofix [#27011] executing a script crashes Blender
Campbell Barton [Tue, 19 Apr 2011 04:19:09 +0000 (04:19 +0000)]
fix [#27011] executing a script crashes Blender

9 years agofix [#27015] RNA Bug: Unpacking sounds with a long ID name fails: sound ID length...
Campbell Barton [Mon, 18 Apr 2011 15:20:19 +0000 (15:20 +0000)]
fix [#27015] RNA Bug: Unpacking sounds with a long ID name fails: sound ID length wrong?!
also fix for OBJECT_OT_proxy_make and RENDER_OT_render using incorrect lengths for ID names.

9 years agoFix for [#26990] Loading file w packed audio crashes
Joerg Mueller [Mon, 18 Apr 2011 14:24:36 +0000 (14:24 +0000)]
Fix for [#26990] Loading file w packed audio crashes
FFMPEG was reallocating buffers it didn't own and wasn't allowed to. This workaround should work now flawlessly.

Also fixing a bug regarding unpacking sounds, the UI stated unpacking to //audio/filename while it was unpacking to //sounds/filename

9 years agoBugfix #26901
Ton Roosendaal [Mon, 18 Apr 2011 11:22:01 +0000 (11:22 +0000)]
Bugfix #26901

Compositing, lens distortion node: it delivered RGBA out with alpha zero,
making it not draw previews, violates both premul or straight alpha usage.

Now it just sets alpha to 1 for entire output.

Cleaned code readability a bit as well.

9 years agofix for part of this report [#27006] Apply Scale at a B-Bone Skeleton causes rescale...
Campbell Barton [Mon, 18 Apr 2011 10:40:06 +0000 (10:40 +0000)]
fix for part of this report [#27006] Apply Scale at a B-Bone Skeleton causes rescale of B-Bones and offset of attached objects

bbones now get scaled too, but the attached objects still get offset.

9 years agocorrection for windows.
Campbell Barton [Mon, 18 Apr 2011 10:18:35 +0000 (10:18 +0000)]
correction for windows.

9 years agoFix for [#26949] problems opening 2.49 files with audio (relative path problems?)
Joerg Mueller [Mon, 18 Apr 2011 10:04:28 +0000 (10:04 +0000)]
Fix for [#26949] problems opening 2.49 files with audio (relative path problems?)
When I wrote that code wasn't set correctly and I had to use; now it seems to be the other way round :-)

9 years agofix [#26951] blenderplayer and runtimes will not load
Campbell Barton [Mon, 18 Apr 2011 08:27:50 +0000 (08:27 +0000)]
fix [#26951] blenderplayer and runtimes will not load
blenderplayer wasn't finding bundled python, eg: ./2.57/python/lib

9 years agocmake
Campbell Barton [Mon, 18 Apr 2011 07:11:40 +0000 (07:11 +0000)]
- allow building blenderplayer with redcode.
- when ffmpeg is enabled remove strict compiler errors for imbuf and blenkernel since its hard to avoid these warnings across ffmpeg versions.

9 years agofix for own mistake in recent commit: [#27000] Spotlight spot shape size, lamp object...
Campbell Barton [Mon, 18 Apr 2011 03:27:15 +0000 (03:27 +0000)]
fix for own mistake in recent commit: [#27000] Spotlight spot shape size, lamp object data - numerical entries are interpreted as radians though displayed in degrees in SVN 36199

now apply units after python evaluation for unit buttons.

9 years agoobject.collision was allocating on access for all object types - camera could get...
Campbell Barton [Mon, 18 Apr 2011 01:45:28 +0000 (01:45 +0000)]
object.collision was allocating on access for all object types - camera could get collision data for eg.
now check for mesh types only.

any other type will return None.

9 years agofix [#26995] Crash on bpy.context.object.collision
Campbell Barton [Mon, 18 Apr 2011 01:40:45 +0000 (01:40 +0000)]
fix [#26995] Crash on bpy.context.object.collision
  use object.collision rather then object.modifiers[...].settings

9 years agoFix [#26896] Displace Node crashes Blender when connected to Z-Buffer
Matt Ebb [Sun, 17 Apr 2011 22:47:23 +0000 (22:47 +0000)]
Fix [#26896] Displace Node crashes Blender when connected to Z-Buffer

Clamped the maximum displacement distance to 4 x the input image dimensions - prevents hanging when vary large values are mistakenly plugged in, such as Z buffers,

9 years agoCommitting patch [#26960] bu MiikaH, fixes bug:
Matt Ebb [Sun, 17 Apr 2011 22:11:23 +0000 (22:11 +0000)]
Committing patch [#26960] bu MiikaH, fixes bug:
[#26945] Hue Correct doesn't Hue But Rather Saturate


9 years agochange unit evaluation only to do try the units replacements if evaluating with pytho...
Campbell Barton [Sun, 17 Apr 2011 12:47:20 +0000 (12:47 +0000)]
change unit evaluation only to do try the units replacements if evaluating with python fails, in rare cases its possible a valid python expression could get units applied to it.

9 years agoFix #26989: Smooth tangent Iteration field in Curve panel not responding.
Sergey Sharybin [Sun, 17 Apr 2011 12:13:02 +0000 (12:13 +0000)]
Fix #26989: Smooth tangent Iteration field in Curve panel not responding.

Not sure what's the uint of step argument for RNA_def_property_ui_range, but
i just set the same values as in other cases used (like Camera.draw_size)

9 years ago== Sequencer ==
Peter Schlaile [Sun, 17 Apr 2011 10:05:27 +0000 (10:05 +0000)]
== Sequencer ==

Fixes Fix for [#25713] VSE shows and renders wrong straight alpha gradient even after convert to pr
(see revision: 34540, fix by Janne)

By not breaking the seqcache interface API.

Added comments to header file, so that it is easier to understand, how the
cache API is supposed to work.

9 years agofix #26957
M.G. Kishalmi [Sun, 17 Apr 2011 08:38:27 +0000 (08:38 +0000)]
fix #26957

spotlights halo and intensity tooltip had "(buffer shadow)" in there,
while it works just fine with no-shadow and ray-shadow.

the volumetric "step" property is only visible with buffershadows

9 years agobuildbot:
Sergey Sharybin [Sun, 17 Apr 2011 06:17:37 +0000 (06:17 +0000)]

Use BF_NUMJOBS from user cinfigs rather than passing it as
command line argument.

9 years agobuildbot:
Sergey Sharybin [Sat, 16 Apr 2011 21:23:05 +0000 (21:23 +0000)]
- use cores+1 threads
- do not clean build directories
- separate build directories for blender and blenderplayer

This should make compilation much faster and buildbot rebuild tag could
happen more often

9 years agochanging the gl texture limit wasn't updating the displayed sizes.
Campbell Barton [Sat, 16 Apr 2011 10:19:34 +0000 (10:19 +0000)]
changing the gl texture limit wasn't updating the displayed sizes.

9 years agoFix for IRC reported bug from Dalai:
Sergey Sharybin [Sat, 16 Apr 2011 09:58:50 +0000 (09:58 +0000)]
Fix for IRC reported bug from Dalai:
Text editor used to add extra indentation when inserting new line from
line with dictionary. Also, fixed extra indentation when comma is inside string.

9 years agofix [#26955] GL Texture Size doesn't work.
Campbell Barton [Sat, 16 Apr 2011 09:26:45 +0000 (09:26 +0000)]
fix [#26955] GL Texture Size doesn't work.
Brecht: reverting this change you made r22532, which I cant see a reason for.

9 years agofix [#26906] Panorama Button (Camera Data Properties)
Campbell Barton [Fri, 15 Apr 2011 12:08:17 +0000 (12:08 +0000)]
fix [#26906] Panorama Button (Camera Data Properties)
- render check for ortho/panorama combination wasn't working since the flags were not initialized at the time of checking.
- disable panorama button in ortho mode.

9 years agopossible fix [#26930] Blender 2.57 Shuts down when trying to edit 3D text
Campbell Barton [Fri, 15 Apr 2011 03:47:54 +0000 (03:47 +0000)]
possible fix [#26930] Blender 2.57 Shuts down when trying to edit 3D text
can't test but this avoids using strncat which is giving problems.

9 years agostyle changes & replace some memset's with zero initializers.
Campbell Barton [Fri, 15 Apr 2011 01:43:30 +0000 (01:43 +0000)]
style changes & replace some memset's with zero initializers.

9 years agofix [#26937] Radio button text truncation should start at beginning of string
Campbell Barton [Fri, 15 Apr 2011 01:32:37 +0000 (01:32 +0000)]
fix [#26937] Radio button text truncation should start at beginning of string
ensure start of text is always visible.

- also left in test for fix [#26933] which left it broken.
- quiet warning in AUD Py API.