blender.git
8 years agosynched with trunk at revision 34793
Nick Samarin [Wed, 16 Feb 2011 16:55:16 +0000 (16:55 +0000)]
synched with trunk at revision 34793

8 years agosynched with trunk at revision 34793
Nick Samarin [Wed, 16 Feb 2011 16:47:48 +0000 (16:47 +0000)]
synched with trunk at revision 34793

8 years agosynched with trunk at revision 34793
Nick Samarin [Wed, 16 Feb 2011 16:46:29 +0000 (16:46 +0000)]
synched with trunk at revision 34793

8 years agoaccess past array bounds in layerInterp_mdisps, also make some vars const.
Campbell Barton [Sat, 12 Feb 2011 10:18:21 +0000 (10:18 +0000)]
access past array bounds in layerInterp_mdisps, also make some vars const.

8 years agofix for possible (but unlikely) problem with strncpy not adding \0 and then extending...
Campbell Barton [Sat, 12 Feb 2011 09:58:28 +0000 (09:58 +0000)]
fix for possible (but unlikely) problem with strncpy not adding \0 and then extending the string with strcat. use BLI_snprintf instead.

8 years ago- resource leak in pointcache, opendir without closedir()
Campbell Barton [Sat, 12 Feb 2011 09:09:52 +0000 (09:09 +0000)]
- resource leak in pointcache, opendir without closedir()
- reading pointcache was using an incorrect, always NULL variable.
- commented NDof code, was giving warnings and isnt used now.

8 years ago- move keyingsets_utils.py into modules.
Campbell Barton [Sat, 12 Feb 2011 08:12:00 +0000 (08:12 +0000)]
- move keyingsets_utils.py into modules.
- add gplv2 header
- define __all__ so when importing '*' it wont being in locally defined vars.

8 years agoupdate templates for registration changes
Campbell Barton [Sat, 12 Feb 2011 08:04:32 +0000 (08:04 +0000)]
update templates for registration changes

8 years agofix for building with opencollada 833 on linux.
Campbell Barton [Sat, 12 Feb 2011 06:25:04 +0000 (06:25 +0000)]
fix for building with opencollada 833 on linux.

8 years agoquiet some clang warnings.
Campbell Barton [Sat, 12 Feb 2011 05:12:26 +0000 (05:12 +0000)]
quiet some clang warnings.

8 years agorender stats_background() was giving clang warning about unused argument and wasn...
Campbell Barton [Sat, 12 Feb 2011 01:02:21 +0000 (01:02 +0000)]
render stats_background() was giving clang warning about unused argument and wasn't checking for buffer overrun (though this would be very unlikely).
write to the stdout directly rather then building a string and writing that. (no functional change).

8 years agoSVN maintenance.
Guillermo S. Romero [Fri, 11 Feb 2011 19:36:58 +0000 (19:36 +0000)]
SVN maintenance.

8 years agoBugfix #26021
Ton Roosendaal [Fri, 11 Feb 2011 18:29:52 +0000 (18:29 +0000)]
Bugfix #26021

On certain buttons, and only when not in triple buffer, pressing
RMB "Add shortcut" crashed Blender. NULL check missing.

8 years agoFix #26039: Relative Shapkeys have wrong coordinates after inserting vertices
Sergey Sharybin [Fri, 11 Feb 2011 17:56:25 +0000 (17:56 +0000)]
Fix #26039: Relative Shapkeys have wrong coordinates after inserting vertices

There was invalid memory access for newly created vertices.
Added checking of keyindex value when calculating verticies offsets.

8 years agoFix #26040: Crash converting curve to mesh
Sergey Sharybin [Fri, 11 Feb 2011 17:43:56 +0000 (17:43 +0000)]
Fix #26040: Crash converting curve to mesh

Really stupid mistake :)

8 years agoMade some function from DerivedMesh.c be avaliable from other modules.
Sergey Sharybin [Fri, 11 Feb 2011 15:15:35 +0000 (15:15 +0000)]
Made some function from DerivedMesh.c be avaliable from other modules.
Some naming changes to make naming more uniform. No functional changes.

It's necessery for further crazyspace changes and improvenments.

8 years agoBug fix for problem 2 in [#25973] Bake End Frame Not Configurable
Janne Karhu [Fri, 11 Feb 2011 14:59:19 +0000 (14:59 +0000)]
Bug fix for problem 2 in [#25973] Bake End Frame Not Configurable
* External caches didn't load for smoke straight away. Smoke caches store all necessary info in every file, so no need to try to look for an info file.

8 years agopatch [#25978] mathutils fixes for bpy_types.py and vertexpaint_dirt.py
Campbell Barton [Fri, 11 Feb 2011 12:30:17 +0000 (12:30 +0000)]
patch [#25978] mathutils fixes for bpy_types.py and vertexpaint_dirt.py
from Filiciss Muhgue (filiciss)

8 years agopatch [#26030] Debian spec fix (Patch for #26028)
Campbell Barton [Fri, 11 Feb 2011 10:29:47 +0000 (10:29 +0000)]
patch [#26030] Debian spec fix (Patch for #26028)
from Shinsuke Irie (irie)

8 years agoRemoved the internal_select parameter from ntreeCopyTree. This was used just in one...
Lukas Toenne [Fri, 11 Feb 2011 09:37:58 +0000 (09:37 +0000)]
Removed the internal_select parameter from ntreeCopyTree. This was used just in one place when duplicating nodes, which is not an actual copying of the tree. The node duplicate operator now copies selected nodes itself.

8 years agoupdate pacman spec for newer python and match naming convention to debian spec.
Campbell Barton [Fri, 11 Feb 2011 09:28:11 +0000 (09:28 +0000)]
update pacman spec for newer python and match naming convention to debian spec.
also pre-compile python modiles.

8 years agoMade group label callback function static.
Lukas Toenne [Fri, 11 Feb 2011 07:46:06 +0000 (07:46 +0000)]
Made group label callback function static.

8 years agoadd torus script wasnt registering.
Campbell Barton [Fri, 11 Feb 2011 03:42:36 +0000 (03:42 +0000)]
add torus script wasnt registering.

8 years agocls.is_registered() class method for python subclasses of internal types.
Campbell Barton [Fri, 11 Feb 2011 02:40:14 +0000 (02:40 +0000)]
cls.is_registered() class method for python subclasses of internal types.
Synonymous with ('bl_rna' in cls.__dict__)

8 years agobpy.utils.register_module() generator could go into eternal loop.
Campbell Barton [Fri, 11 Feb 2011 01:27:00 +0000 (01:27 +0000)]
bpy.utils.register_module() generator could go into eternal loop.

8 years agoUI functions added to existing UI classes (operators adding their own menus for eg),
Campbell Barton [Fri, 11 Feb 2011 01:12:01 +0000 (01:12 +0000)]
UI functions added to existing UI classes (operators adding their own menus for eg),
would stop the entire menu from drawing if they raised an exception.

now print the exception and continue.

Also added a verbose argument for bpy.utils.(un)register_module() to help test whats being registered.

8 years agouse weak references for the internal metaclass typemap,
Campbell Barton [Fri, 11 Feb 2011 00:39:07 +0000 (00:39 +0000)]
use weak references for the internal metaclass typemap,
this should help with blender leaking memory with python classes though the bug is still not fixed.

8 years agominor python register changes.
Campbell Barton [Fri, 11 Feb 2011 00:11:17 +0000 (00:11 +0000)]
minor python register changes.
- KeyingSetInfo classes are now collected like Panels, Operators etc so bpy.utils.register_module() can be used.
- move bpy.types.register() to bpy.utils.register_class

8 years agoBGE: frame start/end in action/fcurves/shapekey to support floats
Dalai Felinto [Fri, 11 Feb 2011 00:03:26 +0000 (00:03 +0000)]
BGE: frame start/end in action/fcurves/shapekey to support floats
after discussion over the mailing-list it seems that it really makes no sense to restrict that. Specially since we have the "Property" playback mode that usually will be a float.

Since there is no need for do_version or whatoever I don't see a problem. Any Thoughts? Maube to allow it only through the Python API?

8 years agopatch [#25809] Auto-Registration as utility function.
Campbell Barton [Thu, 10 Feb 2011 23:48:22 +0000 (23:48 +0000)]
patch [#25809] Auto-Registration as utility function.
This removes auto-registration, committed by Martin r30961.
Realize this is a contentious topic but Brecht and myself both would rather opt-in registration.

TODO:
- addons need updating.
- class list will be modified to use weakrefs (should have been done for existing system too).
- will move bpy.types.(un)register functions into bpy.utils.(un)register_class, currently including these functions in a type list is internally ugly, scripts which loop over types also need to check for these.

8 years agoDifferent method for blur node aspect correction. Now the user can still set differen...
Lukas Toenne [Thu, 10 Feb 2011 20:54:02 +0000 (20:54 +0000)]
Different method for blur node aspect correction. Now the user can still set different sizes for x/y blurring in relative mode, but choose to use aspect correction on either of the axes.

8 years agoMore options for the blur node filter size. This can now be pixel based or relative...
Lukas Toenne [Thu, 10 Feb 2011 18:54:49 +0000 (18:54 +0000)]
More options for the blur node filter size. This can now be pixel based or relative to both axes or just either width or height.

8 years agoBugfix #26013
Ton Roosendaal [Thu, 10 Feb 2011 17:23:00 +0000 (17:23 +0000)]
Bugfix #26013

Good discovery this one.
It appeared that "pose mode" changes were not registered in our undo system.
That way the first operator you try to redo after exit posemode fails.

8 years agoBugfix #26001
Ton Roosendaal [Thu, 10 Feb 2011 15:47:55 +0000 (15:47 +0000)]
Bugfix #26001

Adding a byte rect to float ImBuf was always freeing the mipmap levels.
Removed this convention since it crashes renders + image texture draw.

Proper ownership handling of ImBuf is high on the wish list :)

8 years agofix for crash with GLSL material when image couldn't be loaded.
Campbell Barton [Thu, 10 Feb 2011 14:59:17 +0000 (14:59 +0000)]
fix for crash with GLSL material when image couldn't be loaded.
also quiet pep8 warnings.

8 years agomesh validation remove duplicate faces didn't always work, now it _should_ all work...
Campbell Barton [Thu, 10 Feb 2011 14:13:13 +0000 (14:13 +0000)]
mesh validation remove duplicate faces didn't always work, now it _should_ all work correctly.

8 years agomesh validation: bugfix for removing doubles, another fix coming...
Campbell Barton [Thu, 10 Feb 2011 12:34:52 +0000 (12:34 +0000)]
mesh validation: bugfix for removing doubles, another fix coming...

8 years agoBugfix [#26004] compositor: backdrop zoom factor too small
Joshua Leung [Thu, 10 Feb 2011 10:24:05 +0000 (10:24 +0000)]
Bugfix [#26004] compositor: backdrop zoom factor too small

The backdrop zoom factor for new node-editor instances was not set
(i.e. was default initialised to 0). Now, this gets set to 1.0.

Also, set the property default in RNA to match this.

8 years agoBugfix [#26002] Outliner Visible layers + Single object & data = broke
Joshua Leung [Thu, 10 Feb 2011 10:14:12 +0000 (10:14 +0000)]
Bugfix [#26002] Outliner Visible layers + Single object & data = broke
conections

It seems that some of the Outliner hacks used while building the tree
was causing problems, as Make Single User (and potentially other code
working with ID-data, specifically with the "newid" value there) was
making use of the variable used there for other purposes, leading to
memory corruption.

This bug also occurred in 2.4x, though when I tested there, it crashed
immediately.

Ton, you may want to double-check this bug!

8 years agoSmall consistency fixups
Joshua Leung [Thu, 10 Feb 2011 09:39:55 +0000 (09:39 +0000)]
Small consistency fixups

8 years agomesh.validate() now returns True if any corrections were made.
Campbell Barton [Thu, 10 Feb 2011 09:29:31 +0000 (09:29 +0000)]
mesh.validate() now returns True if any corrections were made.
tested that correcting invalid meshes works by generating random meshes and checking that only the first call to mesh.validate() makes changes.

found 2 bugs in mesh validation.
- face sorting array wasn't assigned correct indices.
- removing invalid edges used wrong comparison.

8 years agoscript to build debian packages directly from svn, using blender version and svn...
Campbell Barton [Thu, 10 Feb 2011 07:22:56 +0000 (07:22 +0000)]
script to build debian packages directly from svn, using blender version and svn rev for package name.

8 years agodebian package spec [#26007] Debian spec
Campbell Barton [Thu, 10 Feb 2011 06:11:16 +0000 (06:11 +0000)]
debian package spec [#26007] Debian spec
by Dan Eicher (dna)

8 years agoBugfix [#25831] Sorting channels broken
Joshua Leung [Thu, 10 Feb 2011 05:15:05 +0000 (05:15 +0000)]
Bugfix [#25831] Sorting channels broken

Recoded animation channel sorting code. In particular, the old code
didn't handle "islands" of selected items well (i.e. a chain of
several connected items in a row), with some of these cases having
unpredictable results.

There were also some bugs in the way some of the rearranging methods
worked, allowing some invalid operations to be performed. Some of
these probably triggered errors such as some channels getting stuck,
and so on.

8 years agofix [#26003] Twice applied modifier with Convert to mesh with several multi-user...
Campbell Barton [Thu, 10 Feb 2011 04:48:49 +0000 (04:48 +0000)]
fix [#26003] Twice applied modifier with Convert to mesh with several multi-user objects
convert_exec could do with a re-write, getting quite confusing.

update md5's for ctest results and some renaming in mesh_validate code.

8 years agosmall fix so older files are loaded with merge on in the mirror modifiers
Michael Fox [Thu, 10 Feb 2011 00:44:26 +0000 (00:44 +0000)]
small fix so older files are loaded with merge on in the mirror modifiers

8 years agoSet default for merge mirror to ON
Daniel Salazar [Thu, 10 Feb 2011 00:25:00 +0000 (00:25 +0000)]
Set default for merge mirror to ON

8 years agosmall feature request from zanqdo, merging in the mirror modifier is now optional...
Michael Fox [Thu, 10 Feb 2011 00:05:03 +0000 (00:05 +0000)]
small feature request from zanqdo, merging in the mirror modifier is now optional, simply turning town the merge limit just simply do anything, and merging is off by default as this seems more logical behaviour

8 years agoUpdate mesh normals when undoing sculpt stroke to prevent shading
Sergey Sharybin [Wed, 9 Feb 2011 15:38:49 +0000 (15:38 +0000)]
Update mesh normals when undoing sculpt stroke to prevent shading
artifacts in some cases (enter edit mode/disabling modifiers after undo)

8 years agofix [#25994] Meshes with no vertices gets NaN location on setting origin to geometry
Campbell Barton [Wed, 9 Feb 2011 15:32:39 +0000 (15:32 +0000)]
fix [#25994] Meshes with no vertices gets NaN location on setting origin to geometry

8 years agoBKE_mesh_validate() now corrects invalid meshes (optionally), added access for python...
Campbell Barton [Wed, 9 Feb 2011 15:13:20 +0000 (15:13 +0000)]
BKE_mesh_validate() now corrects invalid meshes (optionally), added access for python so it can correct for bad imported geometry - mesh.validate().

8 years agoRestoring the old behavior of switching texture context based on active tab:
Janne Karhu [Wed, 9 Feb 2011 11:03:11 +0000 (11:03 +0000)]
Restoring the old behavior of switching texture context based on active tab:
* Once again switching to texture panel from material, world or lamp data tab sets the texture context automatically to the "parent context".

8 years agouse static functions rather then defines for internal matrix__apply_to_copy() and...
Campbell Barton [Wed, 9 Feb 2011 09:20:17 +0000 (09:20 +0000)]
use static functions rather then defines for internal matrix__apply_to_copy() and similar.
+ other minor internal changes.

8 years agofix [#25968] Crash on changing merge distance in array modifier with edgesplit modifi...
Campbell Barton [Wed, 9 Feb 2011 04:45:53 +0000 (04:45 +0000)]
fix [#25968] Crash on changing merge distance in array modifier with edgesplit modifier in chain

8 years agobugfix [#25523] Face extrude will crash Blender if array and subsurf modifier are...
Campbell Barton [Wed, 9 Feb 2011 03:49:59 +0000 (03:49 +0000)]
bugfix [#25523] Face extrude will crash Blender if array and subsurf modifier are added to mesh object
test_index_face() failed to fix indices like (6,0,0,6), making it (0,6,6,0).

8 years agoSVN maintenance.
Guillermo S. Romero [Wed, 9 Feb 2011 03:48:40 +0000 (03:48 +0000)]
SVN maintenance.

8 years agomove validation into blender kernel so it can be called by internal modifier funcs...
Campbell Barton [Wed, 9 Feb 2011 02:28:11 +0000 (02:28 +0000)]
move validation into blender kernel so it can be called by internal modifier funcs more easily.

8 years agopatch [#25972] blender-thumbnailer.py: GVFS support
Campbell Barton [Wed, 9 Feb 2011 02:09:30 +0000 (02:09 +0000)]
patch [#25972] blender-thumbnailer.py: GVFS support
from Shinsuke Irie (irie) with some minor edits.

Shinsuke's description from the tracker:
---
I have implemented GVFS framework support of blender-thumbnailer.py which allows some file managers like Nautilus and Thunar to show thumbnails in trash or network directories. If Python's gio module is available, the thumbnailer uses it to access to filesystems mounted via GVFS. This change shouldn't affect desktop environments other than GNOME and XFCE.

A function gvfs_open() in this patch is defined to solve a stupid incompatibility between Python file object and GIO Seekable object.

On Ubuntu 10.10, I confirmed thumbnails can be generated for file://, trash://, sftp://, and smb://.

8 years agoGraph Editor: Added option to turn off AA drawing for performance
Joshua Leung [Wed, 9 Feb 2011 02:09:25 +0000 (02:09 +0000)]
Graph Editor: Added option to turn off AA drawing for performance
gains when using really heavy files

8 years agomesh validation function to report errors and help debug bad data generated by modifiers.
Campbell Barton [Wed, 9 Feb 2011 01:27:46 +0000 (01:27 +0000)]
mesh validation function to report errors and help debug bad data generated by modifiers.

detects...
- invalid vertex range for edges/faces
- duplicate indices in edge/face
- duplicate edges/faces in mesh
- missing edges data in faces

At the moment it doesn't correct errors, but eventually it will do this.

8 years agoFix for rendering procedual bump maps, mapped in world space, since the new bump...
Michael Fox [Wed, 9 Feb 2011 01:21:03 +0000 (01:21 +0000)]
Fix for rendering procedual bump maps, mapped in world space, since the new bump map kernel uses direction, this bug became a real issue, with bumps suddenly changing direction

Fix provided due to a long session on IRC with Morten S. Mikkelsen (sparky_)

8 years agoOld animation conversion code cleanups:
Joshua Leung [Wed, 9 Feb 2011 01:16:11 +0000 (01:16 +0000)]
Old animation conversion code cleanups:
- Tidying up some inconsistent formatting
- Names of old IPO blocks are now included in the names used for new
actions. These are included after a "CDA:" prefix, (i.e.  "_C_onverted
_D_ata _A_ction:"), which makes it easier to browse through these
actions later.

8 years agoBugfix [#25987] Duplicated markers naming issue
Joshua Leung [Wed, 9 Feb 2011 01:05:40 +0000 (01:05 +0000)]
Bugfix [#25987] Duplicated markers naming issue

One-liner fix - a missing "OPERATOR_FINISHED" on the select operator
was causing problems renaming markers and potentially with other
operations too!

To find this bug, I added debug method to dump the list of markers to
console. This has revealed some troublesome things about the way
markers are organised, which IMO need to be addressed.

8 years agoBugfix: When removing the "only insert for active keyingset" option
Joshua Leung [Wed, 9 Feb 2011 00:52:53 +0000 (00:52 +0000)]
Bugfix: When removing the "only insert for active keyingset" option
for Auto-keying from the UserPrefs, I forgot to remove the option from
the UI there.

8 years agoBugfix [#25990] backward compatibility with ShapeKey Actions :: 2.49
Joshua Leung [Wed, 9 Feb 2011 00:51:30 +0000 (00:51 +0000)]
Bugfix [#25990] backward compatibility with ShapeKey Actions :: 2.49
-> 2.50

Actionified ShapeKey IPO-blocks (i.e. "Shape Key Actions") would have
an action channel with the hardcoded name, "Shape", and this action
would be assigned to Object level (although ShapeKey blocks had their
own IPO-block slot, only Objects could have actions, so actionifying
ShapeKey IPO-blocks would wrap a ShapeKey block's IPO's to an Object-
level action).

Hence, the path conversions code would wrongly interpret this action
channel as referring to a Pose Channel instead, thus creating some
invalid paths with a 'pose.bones["Shape"]' prefix wrongly getting
tacked on. To ensure that the converted animation can work out of the
box, a 'data.shape_keys' prefix is now used instead so that these
actions can still be Object-rooted while still being able to correctly
control the Shape Keys. This is because there's no easy way to
identify and then shift such action from Object-level to ShapeKey-
level within the conversion code. The consequence though is that such
converted ShapeKey actions CAN ONLY BE USED THROUGH OBJECT LEVEL (i.e.
via Action NOT ShapeKey editor).

Secondly, the Action/ShapeKey editor version patching code has been
modified so that if a ShapeKey editor view was active when loading an
old 2.4x file, the action gets cleared from the view. This is because
of this didn't make semantic sense: the ShapeKey editor is for
ShapeKey-rooted actions, while the Action Editor is for Object-rooted
actions. The converted files though let Object-level actions be shown
in either one.

8 years agoignore __pycache__ dir for scons and cmake installation (py3.2 caches modules here).
Campbell Barton [Wed, 9 Feb 2011 00:45:16 +0000 (00:45 +0000)]
ignore __pycache__ dir for scons and cmake installation (py3.2 caches modules here).

8 years agouse update() rather then update_tag(), needed for making edge data.
Campbell Barton [Tue, 8 Feb 2011 21:32:26 +0000 (21:32 +0000)]
use update() rather then update_tag(), needed for making edge data.

8 years agojahka IRC fix
M.G. Kishalmi [Tue, 8 Feb 2011 16:24:00 +0000 (16:24 +0000)]
jahka IRC fix

pinning the texture properties gave python errors.

8 years agobugfix [#25969] GLSL missing an update on texture slot change
M.G. Kishalmi [Tue, 8 Feb 2011 14:33:08 +0000 (14:33 +0000)]
bugfix [#25969] GLSL missing an update on texture slot change

what did I learn from this?
"if at first you don't succeed..
   you're not kaito." ;)

8 years agoTexture context selector for texture panel:
Janne Karhu [Tue, 8 Feb 2011 14:29:48 +0000 (14:29 +0000)]
Texture context selector for texture panel:
* Texture context was previously determined by going to the appropriate panel, for example "world panel -> texture panel" to access world textures. Additionally there was a separate button to access brush textures.
* Now the texture context can be selected directly through an expanded icon menu, which shows the available context options.
* This context selector is now at the top of the texture panel, but this could later be perhaps integrated to the context path somehow to be more intuitive.

8 years agoBugfix #25957
Ton Roosendaal [Tue, 8 Feb 2011 13:48:06 +0000 (13:48 +0000)]
Bugfix #25957

RMB click in InfoWindow "console log" was missing call to set subwindow,
needed because it uses opengl picking to find active lines.
Result was that entire UI was glCleared, for some buffer swap methods.

8 years agofix: latest shader wasn't working on itel gfx-cards
M.G. Kishalmi [Tue, 8 Feb 2011 13:40:54 +0000 (13:40 +0000)]
fix: latest shader wasn't working on itel gfx-cards

couldn't use
a = ( float_function() < 0 )? b: c;
for whatever reason.

8 years agoPer-type node labels and customizable names. The label displayed in the node header...
Lukas Toenne [Tue, 8 Feb 2011 12:54:32 +0000 (12:54 +0000)]
Per-type node labels and customizable names. The label displayed in the node header is now by default the node type string. A custom label callback can be implemented to display more detailed information. This is currently used by group nodes, which display their internal tree name, and math, vector math, mix and filter nodes, which use their internal operation sub-type. Also the node tree selection/naming box for groups is now displayed only on open groups, to make it clearer that this is the internal type of the group and get a cleaner main tree.

8 years agofix own recent error [#25977] Torus disappears when adding "Subdivision Surface"
Campbell Barton [Tue, 8 Feb 2011 11:20:19 +0000 (11:20 +0000)]
fix own recent error [#25977] Torus disappears when adding "Subdivision Surface"
ID's and meshes both have update functions, call the meshes rather then update_tag() for recalculating edges.

8 years agoadd back options for loading a renderlayer to offset the image when copying the buffe...
Campbell Barton [Tue, 8 Feb 2011 10:31:47 +0000 (10:31 +0000)]
add back options for loading a renderlayer to offset the image when copying the buffer to a smaller renderlayer.
This was reverted by Brecht r22541 because its inefficient but there is no way to work around this with povray at the moment so adding it back as optional args.

8 years agoText Editor Bugfixes:
Joshua Leung [Tue, 8 Feb 2011 09:57:51 +0000 (09:57 +0000)]
Text Editor Bugfixes:

The poll() callbacks used in the Text Editor for scrolling and text-
block unlinking operators were too restrictive when the text block was
lib-data.

- Scrolling lib-linked texts is useful for just checking out parts of
the linked-in file that aren't visible on screen already. For example,
checking the specific rig that some UI panels script will work on, or
reading a "README.txt" linked in with notes on which layers various
controls are on. It should be fine that this temporarily modifies the
linked text-block (but for view-settings which will can be reset
later/on file load without any real consequences).
- Unlink operator should be able to be run, otherwise it would be very
difficult to remove linked files from a file (?)

8 years agoGroup node type info is now also initialized with helper functions.
Lukas Toenne [Tue, 8 Feb 2011 09:14:18 +0000 (09:14 +0000)]
Group node type info is now also initialized with helper functions.

8 years agoFinished the node type definition cleanup started in r34682. All static node types...
Lukas Toenne [Tue, 8 Feb 2011 09:02:16 +0000 (09:02 +0000)]
Finished the node type definition cleanup started in r34682. All static node types should now use the node_type_* definition helpers to initialize their bNodeType structs.

8 years agoproblem with blender and python 3.2
Campbell Barton [Tue, 8 Feb 2011 06:22:06 +0000 (06:22 +0000)]
problem with blender and python 3.2
- python 3.2 does 'import site' on startup which now tries to parse pyconfig.h which isn't copied. so for now just run without importing 'site', alternative would be to copy the header file for posix systems.
- cache PYTHON_VERSION variable so it can be set to 3.2, needed for copying python installation's other then 3.1.

8 years agoBugfix [#25814] ChildOf constraint: double transformation in object
Joshua Leung [Tue, 8 Feb 2011 05:51:20 +0000 (05:51 +0000)]
Bugfix [#25814] ChildOf constraint: double transformation in object
mode with drivers

ChildOf constraints added using the PoseBone.constraints.new() method
via Python scripts instead of using the operator (this latter method
is still the preferred/recommended method) were not getting some
critical flags set, causing errors arising from space conversions
being performed more than once.

8 years agofix [#25975] Quaternion/Vector.negated() isn't available
Campbell Barton [Tue, 8 Feb 2011 03:37:49 +0000 (03:37 +0000)]
fix [#25975] Quaternion/Vector.negated() isn't available
theres no need for value.negated(), better use -vec / -quat. however -quat didn't exist.

8 years agoChange in behavior to shrinkwrap modifier's offset value with negative enabled.
Campbell Barton [Tue, 8 Feb 2011 02:09:59 +0000 (02:09 +0000)]
Change in behavior to shrinkwrap modifier's offset value with negative enabled.
- negative ray casts would invert the offset direction.
  this meant if positive and negative were enabled at once and the mesh was slightly inside & outside the object it wrapped,
  the offset would be applied in opposite directions.
  This way the offset is always along the vertex normal.

- allow negative offset from RNA, could be useful and no benefit to disable.

8 years ago[#25693] Netrender "shadow" images with last frame always appear
Martin Poirier [Tue, 8 Feb 2011 01:56:36 +0000 (01:56 +0000)]
[#25693] Netrender "shadow" images with last frame always appear

Render engine postprocess property was not named properly

8 years agofix [#25801] Shrinkwrap Offset problems with Project mode.
Campbell Barton [Tue, 8 Feb 2011 01:43:16 +0000 (01:43 +0000)]
fix [#25801] Shrinkwrap Offset problems with Project mode.

The positive result from the previous ray-cast is used again, inadvertently negating the offset from the first hit (acts as if no offset is applied).

8 years agoun-initialized flag used with commit r34695.
Campbell Barton [Tue, 8 Feb 2011 00:18:00 +0000 (00:18 +0000)]
un-initialized flag used with commit r34695.

8 years agofix own error in recent commit [#25970] cannot create scale matrix after mathutils...
Campbell Barton [Tue, 8 Feb 2011 00:10:30 +0000 (00:10 +0000)]
fix own error in recent commit [#25970] cannot create scale matrix after mathutils updates

8 years agomailed Stani Michiels and he's ok to switch his console autocomplete to GPLv2 or...
Campbell Barton [Tue, 8 Feb 2011 00:01:15 +0000 (00:01 +0000)]
mailed Stani Michiels and he's ok to switch his console autocomplete to GPLv2 or later.

8 years agoBugfix: Constraint target validation code was broken
Joshua Leung [Mon, 7 Feb 2011 23:21:28 +0000 (23:21 +0000)]
Bugfix: Constraint target validation code was broken

While testing Apply Visual transforms last night, I noticed that
setting a constraint to use its owner as its target was allowed and
didn't trigger any warnings. This clearly doesn't do any good and is
different from the old behaviour.

8 years agominor edits, no functional changes.
Campbell Barton [Mon, 7 Feb 2011 22:48:23 +0000 (22:48 +0000)]
minor edits, no functional changes.
- BGE was getting MCol array and not using it.
- use list lookup functions for getting constraint from pose bone.
- use const char * in more places.

8 years agoGLSL shader part
M.G. Kishalmi [Mon, 7 Feb 2011 21:57:40 +0000 (21:57 +0000)]
GLSL shader part

bump-mapping update to properly support
multiple textures in different bump-spaces.

8 years agobump-mapping update to properly support
M.G. Kishalmi [Mon, 7 Feb 2011 21:55:54 +0000 (21:55 +0000)]
bump-mapping update to properly support
 multiple textures in different bump-spaces.

kudos to M.L.Mikkelsen (sparky) for helping with the math! :)

8 years agoLogic UI: Game Actuator options renaming
Dalai Felinto [Mon, 7 Feb 2011 18:42:07 +0000 (18:42 +0000)]
Logic UI: Game Actuator options renaming
After talking with Ton Roosendaal we agreed on making those changes.
I wonder if we should go for "Start Game" instead of "From File". But Space is not a constraint here so be it.

8 years agoLogic UI: Armature Actuator + general Captalizing 1st letter of UI text
Dalai Felinto [Mon, 7 Feb 2011 18:24:15 +0000 (18:24 +0000)]
Logic UI: Armature Actuator + general Captalizing 1st letter of UI text
- Armature Actuator now only shows the "Secondary Target" option when the Bone Constraint supports it (IK only now).
-- that may be overkill I don't know. It shouldn't slow down the UI considerably, so it should be fine. Easy to revert if needed though.

- renaming things such as "Start frame" to "Start Frame"

8 years agoBugfix 25965
Ton Roosendaal [Mon, 7 Feb 2011 18:09:27 +0000 (18:09 +0000)]
Bugfix 25965

New "auto render" now prevents calling anim-updates, that's
not needed (and popped back transformed keyed objects).

8 years agoTodo/feature request
Ton Roosendaal [Mon, 7 Feb 2011 16:41:57 +0000 (16:41 +0000)]
Todo/feature request

When using masks or other simple 3D elements in composites, doing
a layer re-rendering on a node is a bit clumsy all the time.

This commit does two things to help:
- new hotkey "Z" in node editor automatically finds render layer
  that changed and re-renders it + composites
- option "Auto Render" does same, but then after every transform
  edit in 3D window

The latter is experimental; real & proper system for this requires
full threaded render support (like previews). But it works!

Demo file:
http://download.blender.org/demo/test/auto_composite.blend

Important fix:
After any render, all the render layers were tagged "changed", which
caused any edit to first totally recomposte everthing. Now it only
composites changes.

Implementation notes

- DAG scene flush now sets 'changed' flags in render layer nodes
- Added notifier for 'transform finished' to trigger the update,
  this is temporarily.

8 years agoFix for [#25963] Show mouse option in wrong Panel.
Thomas Dinges [Mon, 7 Feb 2011 14:53:40 +0000 (14:53 +0000)]
Fix for [#25963] Show mouse option in wrong Panel.
Did some reorganization of the Game buttons, made a new "Display" Panel.

8 years agoremove mat_nr from MVert struct, saves 4 bytes per vertex.
Campbell Barton [Mon, 7 Feb 2011 13:02:44 +0000 (13:02 +0000)]
remove mat_nr from MVert struct, saves 4 bytes per vertex.
used to be used for halo's

8 years agoArgh! This code is haunted... (line 666) compiler here isn't barfing
Joshua Leung [Mon, 7 Feb 2011 12:37:14 +0000 (12:37 +0000)]
Argh! This code is haunted... (line 666) compiler here isn't barfing
on these errors tonight :/

8 years agoAnimSys Todo: Scene/CompoNode Driver Hacks
Joshua Leung [Mon, 7 Feb 2011 12:28:04 +0000 (12:28 +0000)]
AnimSys Todo: Scene/CompoNode Driver Hacks

Drivers for Scene, World, and Compositing Nodes now "work" (well,
sort-of)! Previously they were strictly restricted to object-
accessible data only; now they can function across the board (give or
take some weak spots).

Although there is still no depsgraph support so that these properties
update properly when their source controls are changed (this will
probably require a lot more work), they can still update under other
circumstances (i.e. frame change and/or manual refresh flushing via
mouse movement, etc.)

As the depsgraph tagging support is lacking, these just get always
executed for now, which might potentially be quite sluggish, though it
is hoped that there are so few of these top-level datablocks with
drivers hooked up that this is barely an issue in practice. At least I
haven't noticed any substantial slowdowns for animation playback, so
it should probably be fine.

8 years agofix [#25926] lattice + projection on surface snap issue
Campbell Barton [Mon, 7 Feb 2011 12:07:26 +0000 (12:07 +0000)]
fix [#25926] lattice + projection on surface snap issue