blender-staging.git
9 years agoAdded tooltip note that parent curve 'Follow' needs to be enabled for track axis...
Campbell Barton [Thu, 28 Apr 2011 13:01:29 +0000 (13:01 +0000)]
Added tooltip note that parent curve 'Follow' needs to be enabled for track axis to do anything.
also show both enum descriptions in the tooltip (the enum properties description and the individual enums).

9 years agoTwitter report fix :)
Ton Roosendaal [Thu, 28 Apr 2011 12:43:28 +0000 (12:43 +0000)]
Twitter report fix :)

More clear naming for image "source" type.
"Single Image" and "Image Sequence" and "Movie File".

Thanks @hjalti for poking!

9 years agofix [#27196] Traceback caused by preset selection
Campbell Barton [Thu, 28 Apr 2011 09:52:16 +0000 (09:52 +0000)]
fix [#27196] Traceback caused by preset selection

9 years agofix [#27201] icosphere normals problem
Campbell Barton [Thu, 28 Apr 2011 09:50:57 +0000 (09:50 +0000)]
fix [#27201] icosphere normals problem

9 years agoBugfix [#27194] Difficulty selecting bones with boneshapes enabled and
Joshua Leung [Thu, 28 Apr 2011 09:46:53 +0000 (09:46 +0000)]
Bugfix [#27194] Difficulty selecting bones with boneshapes enabled and
some bones made un-selectable

Pose Bone selection (like object selection) used OpenGL to draw
wireframes with different colours into an offscreen buffer and then
from that identify which item was clicked on. The bug here was that
unselectable bones were getting drawn for this step too, so they were
getting caught instead of the control bones that were selectable.

9 years agofix [#27193] view/camera/set active object as camera sometimes "disabled" in gui...
Campbell Barton [Thu, 28 Apr 2011 08:26:49 +0000 (08:26 +0000)]
fix [#27193] view/camera/set active object as camera sometimes "disabled" in gui (grayed out)
When in quad split view, operators that only apply to the unlocked region can now be accessed from menus and when the mouse is over a locked view.

Applied to:
- VIEW3D_OT_object_as_camera
- VIEW3D_OT_view_persportho
- VIEW3D_OT_view_orbit
- VIEW3D_OT_viewnumpad

9 years agosmooth view now takes the v3d and region as arguments. (no functional change)
Campbell Barton [Thu, 28 Apr 2011 07:55:29 +0000 (07:55 +0000)]
smooth view now takes the v3d and region as arguments. (no functional change)

9 years agoMwahahahaha! I think I've found the cause of that awful purple/pink
Joshua Leung [Thu, 28 Apr 2011 07:10:13 +0000 (07:10 +0000)]
Mwahahahaha! I think I've found the cause of that awful purple/pink
"glow" that was appearing on bones drawn using "octahedral" from
certain angles. It seems to have been caused by a typo in the code
used to "clear spec colour"

9 years agoCMake build option for security report: CVE-2009-3850
Campbell Barton [Thu, 28 Apr 2011 06:20:47 +0000 (06:20 +0000)]
CMake build option for security report: CVE-2009-3850
Nothing is changed by default but some linux distributions want to have executing python be opt-in.

This keeps the same functionality but disables auto-run from factory settings and in background mode unless its enabled as a command line argument.

This CMake option is marked as advanced and wont show in the regular options list so its less likely to be enabled by people that like to turn everything ON without reading descriptions :)

9 years agoskip some calculations with the wave modifier - when the vert has no vgroup weight...
Campbell Barton [Thu, 28 Apr 2011 05:34:11 +0000 (05:34 +0000)]
skip some calculations with the wave modifier - when the vert has no vgroup weight or 0.0 falloff.

9 years agofix [#27186] Wave modifier falloff
Campbell Barton [Thu, 28 Apr 2011 05:19:17 +0000 (05:19 +0000)]
fix [#27186] Wave modifier falloff
regression from 2.4x (own fault)

9 years agorename duplicate header defines & remove unused var.
Campbell Barton [Thu, 28 Apr 2011 05:15:47 +0000 (05:15 +0000)]
rename duplicate header defines & remove unused var.

9 years agofix for fix, was incorrectly looping over regions.
Campbell Barton [Wed, 27 Apr 2011 14:53:45 +0000 (14:53 +0000)]
fix for fix, was incorrectly looping over regions.

9 years agoremove .Bfs, its not used anymore.
Campbell Barton [Wed, 27 Apr 2011 13:13:07 +0000 (13:13 +0000)]
remove .Bfs, its not used anymore.

9 years agobuildbot: switch to ffmpeg 0.6.3
Sergey Sharybin [Wed, 27 Apr 2011 12:50:47 +0000 (12:50 +0000)]
buildbot: switch to ffmpeg 0.6.3

9 years agoFix #27176: Creating a new UV layer in edit mode fails to copy previous one
Sergey Sharybin [Wed, 27 Apr 2011 08:35:03 +0000 (08:35 +0000)]
Fix #27176: Creating a new UV layer in edit mode fails to copy previous one

Implemented copying data from active MTFACE layer to newly created.
Also, fixed the same bug with vertex colors layer.

9 years agofix [#27174] World Starfield Generation causes crash
Campbell Barton [Wed, 27 Apr 2011 08:32:20 +0000 (08:32 +0000)]
fix [#27174] World Starfield Generation causes crash
allow escaping from render if generating stars takes too long.

9 years agofix [#27164] uv unwrap stretching
Campbell Barton [Wed, 27 Apr 2011 07:36:34 +0000 (07:36 +0000)]
fix [#27164] uv unwrap stretching

9 years agocomment regarding bug [#27175] UV faces show incorrect image in object mode (VBO's)
Campbell Barton [Wed, 27 Apr 2011 05:12:07 +0000 (05:12 +0000)]
comment regarding bug [#27175] UV faces show incorrect image in object mode (VBO's)

9 years agoremove normalize call in derived mesh GetNormal, its not done anywhere else.
Campbell Barton [Wed, 27 Apr 2011 04:57:57 +0000 (04:57 +0000)]
remove normalize call in derived mesh GetNormal, its not done anywhere else.

9 years agoFix for bug #26590, `Texture preview fails when path to custom brush
Nicholas Bishop [Wed, 27 Apr 2011 01:16:24 +0000 (01:16 +0000)]
Fix for bug #26590, `Texture preview fails when path to custom brush
icon is set'

* Main problem was calling BKE_icon_changed too much, blocked previews
  from updating
* Also fixed clearing the icon when it's not a valid image path

link: http://codereview.appspot.com/4356045/
9 years agofixed some issues with the new "shadow only + shading" code.
M.G. Kishalmi [Tue, 26 Apr 2011 15:29:12 +0000 (15:29 +0000)]
fixed some issues with the new "shadow only + shading" code.
patch from MiikaH.

9 years agoAdding support for adding copies of existing drivers to other animdata
Joshua Leung [Tue, 26 Apr 2011 13:49:40 +0000 (13:49 +0000)]
Adding support for adding copies of existing drivers to other animdata
blocks via PyAPI/RNA

For example:
ob = bpy.context.active_object # assumes default cube has some drivers
added already before running script
dst = bpy.data.objects["Camera"]

adt = dst.animation_data_create()
for driver in ob.animation_data.drivers:
    new_driver = adt.drivers.from_existing(driver)

9 years agoBump version for imminent 2.57b tag.
Nathan Letwory [Tue, 26 Apr 2011 12:24:08 +0000 (12:24 +0000)]
Bump version for imminent 2.57b tag.

9 years ago- fix for player linking
Campbell Barton [Tue, 26 Apr 2011 10:38:18 +0000 (10:38 +0000)]
- fix for player linking
- added notes to release todo's.
- renamed view3d view transform matching functions.
- added assert in edge split modifier to make a certain bug easier to spot.

9 years agofix [#27178] Material links lost when making mesh data local
Campbell Barton [Tue, 26 Apr 2011 07:17:21 +0000 (07:17 +0000)]
fix [#27178] Material links lost when making mesh data local
- making local object data - Curve/Mesh/MBall lost references to linked materials.
- joining a linked mesh object into a local one lost the link.

As well as these reported bugs, checked all local functions for consistency/correctness and found other cases which would also fail.
- making local metaball didn't ensure unique ID name.
- make_local_armature() was missing check for object users - main body of code would never run.
- local particles didn't set the dupli-group or textures to extern.

checked all local functions for consistency/correctness.

9 years agofix [#26993] Edge Split Crash
Campbell Barton [Mon, 25 Apr 2011 16:24:38 +0000 (16:24 +0000)]
fix [#26993] Edge Split Crash

9 years agoindentation changes only.
Campbell Barton [Mon, 25 Apr 2011 16:02:53 +0000 (16:02 +0000)]
indentation changes only.

9 years ago2.5 Interface:
Thomas Dinges [Mon, 25 Apr 2011 13:47:15 +0000 (13:47 +0000)]
2.5 Interface:
* Implemented a new operator "WM_OT_properties_context_change" to switch to a different tab inside the properties window.
* This is used now inside the Modifier tab for Simulation Modifiers. Based on a mockup by Janne Karhu:
http://www.pasteall.org/pic/11261
http://www.pasteall.org/pic/11262

Rather than having a delete button there anymore, the button changes the context to Physics/Particles, where you can edit the settings and delete the actual simulation.

9 years agoworkaround/fix [#27162] Running commands in python console crashes blender
Campbell Barton [Mon, 25 Apr 2011 12:39:53 +0000 (12:39 +0000)]
workaround/fix [#27162] Running commands in python console crashes blender

9 years agoFix for [#27112] Boid Particles get Z clamped to 0.0 when "Allow Flighting"
Janne Karhu [Mon, 25 Apr 2011 12:26:33 +0000 (12:26 +0000)]
Fix for [#27112] Boid Particles get Z clamped to 0.0 when "Allow Flighting"
* Boids that can only fly shouldn't care about ground unless there's actually a collision object below them.

9 years agofix [#27139] Value Slider, some colours are two coloured
Campbell Barton [Mon, 25 Apr 2011 11:52:42 +0000 (11:52 +0000)]
fix [#27139] Value Slider, some colours are two coloured

9 years agofix [#27121] Normals always recalculated when adding a mesh in Edit mode
Campbell Barton [Mon, 25 Apr 2011 10:04:07 +0000 (10:04 +0000)]
fix [#27121] Normals always recalculated when adding a mesh in Edit mode

9 years agofix for a crash with the following steps.
Campbell Barton [Mon, 25 Apr 2011 09:28:52 +0000 (09:28 +0000)]
fix for a crash with the following steps.
- open file sel
- save user defaults
- new file
- ctrl+u (crash)

wasn't type checking the space file, passed info space to ED_fileselect_exit().

9 years agofix [#27140] Negative Subdiv level in the operator panel.
Campbell Barton [Mon, 25 Apr 2011 06:44:43 +0000 (06:44 +0000)]
fix [#27140] Negative Subdiv level in the operator panel.
when relative option is disabled, don't allow setting the subdiv value to a negative number.

9 years agoDisplace Modifier - Optimisation Tweaks for jpbouza and ZanQdo
Joshua Leung [Mon, 25 Apr 2011 06:27:32 +0000 (06:27 +0000)]
Displace Modifier - Optimisation Tweaks for jpbouza and ZanQdo

- When strength is 0, there's no need to perform any of the
calculations at all
- When the vertexgroup weight for a vert is set to 0, skip evaluating
the modifier for that vertex as it should result in no-change to the
final result

9 years agorna api
Campbell Barton [Mon, 25 Apr 2011 03:02:26 +0000 (03:02 +0000)]
rna api
- allow RegionView3D.view_matrix to be set.
- RegionView3D.view_rotation was inverted.
- add C function view3d_settings_from_mat()
note, intentionally removed NULL checks, double checked this is ok with callers.

9 years ago2.5 UI scripts:
Thomas Dinges [Sun, 24 Apr 2011 20:59:19 +0000 (20:59 +0000)]
2.5 UI scripts:
* Small cleanup of code and descriptions.

9 years agofix crash [#27158] Appending crash with preview.
Campbell Barton [Sun, 24 Apr 2011 14:45:49 +0000 (14:45 +0000)]
fix crash [#27158] Appending crash with preview.

9 years agoharmless changes to quiet clang static check warnings.
Campbell Barton [Sun, 24 Apr 2011 10:51:45 +0000 (10:51 +0000)]
harmless changes to quiet clang static check warnings.
- made EXPANDED_AGRP take bAnimContext as an argument.
- remove unneeded NULL check drawFacesColored functions.
- comment some vars which are set but not used.

9 years agoAnother fix for node groups: Internal socket stack did not get complete initializatio...
Lukas Toenne [Sun, 24 Apr 2011 05:13:35 +0000 (05:13 +0000)]
Another fix for node groups: Internal socket stack did not get complete initialization of the sockettype value, leading to wrong b/w outputs.

9 years agoFix #27048: text + SimpleDeform modifier = weird render result!
Sergey Sharybin [Sat, 23 Apr 2011 15:27:35 +0000 (15:27 +0000)]
Fix #27048: text + SimpleDeform modifier = weird render result!

It's not real fix, just patch which makes things better by using average
normal for each displist separately. There are still some artifacts with
quite highly deformed letters "O" or "g", but correct fix would need
to calculate derivative of modifiers, which isn't implemented yet.

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)]
buildbot:

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 bpy.app.version_char will be incorrect.
Campbell Barton [Thu, 21 Apr 2011 16:16:12 +0000 (16:16 +0000)]
ack, should have done this before tagging else bpy.app.version_char 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.
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
makes...

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.