10 years agoremove unused variable
Campbell Barton [Thu, 3 Feb 2011 11:02:02 +0000 (11:02 +0000)]
remove unused variable
also clear scene data before running batch import (utility script).

10 years agoMakefile for convenience on *nix systems.
Campbell Barton [Thu, 3 Feb 2011 10:07:15 +0000 (10:07 +0000)]
Makefile for convenience on *nix systems.

Running 'make' starts an out of source build with CMake in ../build/OS_CPU, creating the dir and configuring CMake if necessary.

So casual users can just run this without changing dirs:
 'svn up ; make'

10 years agoBugfix #25913
Ton Roosendaal [Wed, 2 Feb 2011 14:36:00 +0000 (14:36 +0000)]
Bugfix #25913

Compositor: using "read sample buffers" after load file, without
render layers in composite, crashed blender (NULL read)

10 years agoFix for [#25899] Renderer can't trace successive total internal reflection
Janne Karhu [Wed, 2 Feb 2011 12:04:23 +0000 (12:04 +0000)]
Fix for [#25899] Renderer can't trace successive total internal reflection
* This was wrong since 2006!
* Raytrace code assumed refractions to go "air -> glass -> air -> glass -> air.." so actually only the first total internal reflection was calculated correctly, but everything after that was wrong.
* Now after a total internal reflection there needs to be an actual refraction before the ray escapes the "glass" object.

10 years agoAdded Read Render Layers and Read Full Sample Layers to node editor menu
Daniel Salazar [Wed, 2 Feb 2011 10:33:29 +0000 (10:33 +0000)]
Added Read Render Layers and Read Full Sample Layers to node editor menu

10 years agoKeymap conflict in node editor. Read Render Layers is now Ctrl R to
Daniel Salazar [Wed, 2 Feb 2011 10:26:14 +0000 (10:26 +0000)]
Keymap conflict in node editor. Read Render Layers is now Ctrl R to
leave R for rotate

10 years agofix [#25684] Grease pencil strokes with "Surface" option attach erratically to curves.
Campbell Barton [Wed, 2 Feb 2011 03:32:58 +0000 (03:32 +0000)]
fix [#25684] Grease pencil strokes with "Surface" option attach erratically to curves.
added new functions
- view_autodist_depth_segment()
- plot_line_v2v2i(), which takes a callback and plots x/y points.

10 years agoBugfix [#25907] Impossible to "select all" on narrow action editors
Joshua Leung [Wed, 2 Feb 2011 03:12:39 +0000 (03:12 +0000)]
Bugfix [#25907] Impossible to "select all" on narrow action editors

Marker selection operators now use a special poll() callback which
checks that there are some markers before trying to run them. This
means that when there are no markers, the full screen range is
available, instead of just those areas above the region masked off for
markers which can be quite slim when trying to save space by only
showing the summary channel.

10 years agobugfix for setting the worldspace matrix of an object which used quaternion rotation...
Campbell Barton [Wed, 2 Feb 2011 01:01:01 +0000 (01:01 +0000)]
bugfix for setting the worldspace matrix of an object which used quaternion rotation and deltas, was subtracting the values rather then multiplying by the inverse.
effected 'Apply Visual Transform' & pythons obj.matrix_world = mat

10 years ago- some parts of the code to remove rotation were not removing axis/angle rotation...
Campbell Barton [Wed, 2 Feb 2011 00:40:55 +0000 (00:40 +0000)]
- some parts of the code to remove rotation were not removing axis/angle rotation (only functional change of this commit).
- use BLI_math functions for removing rotations from objects and pose channels.
- add unit_axis_angle() to avoid setting the Y axis inline anywhere rotation needs removing.

10 years agofix crash from report [#25746] Adding keyframes to nested custom properties (IDProper...
Campbell Barton [Tue, 1 Feb 2011 23:53:54 +0000 (23:53 +0000)]
fix crash from report [#25746] Adding keyframes to nested custom properties (IDProperties) of a bone causes segfault
though keyframing still doesn't work, it gives an error instead.
also use const char * in more parts of the py/rna api.

10 years ago"Batch-Edit" Code cleanup: Renaming ED_operator_ipo_active to
Joshua Leung [Tue, 1 Feb 2011 23:51:52 +0000 (23:51 +0000)]
"Batch-Edit" Code cleanup: Renaming ED_operator_ipo_active to

10 years agoBugfix [#25902] alt+a over 3D view don't up date dropesheet editor
Joshua Leung [Tue, 1 Feb 2011 23:41:01 +0000 (23:41 +0000)]
Bugfix [#25902] alt+a over 3D view don't up date dropesheet editor

Migrating "redraws" settings from TimeLine view data to per Screen.
The options are now still shown in the TimeLine "Playback" menu

This means that whatever redraw settings you set in a TimeLine editor
will be used throughout a screen (i.e. editor layout) to determine
which editors will get updated during playback, instead of only
certain editors doing certain things at vague times.


Also, I moved some version patches pre 2.56 version bump into a
version-check for 2.56. These must've been missed when doing the

10 years agoAction Editor UI Tweaks:
Joshua Leung [Tue, 1 Feb 2011 22:21:43 +0000 (22:21 +0000)]
Action Editor UI Tweaks:

While animating, I realised that actually the 'only selected' and
'include hidden' DopeSheet filtering options are also useful in the
Action Editor, especially while tweaking the animation for some
characters, where you'd like to focus only on some of the character's
control (i.e. eyelid tweaks, hand tweaks, etc.).

The other DopeSheet filtering options aren't so relevant here, so I've
excluded them from this.

10 years agofix issue #2 raised by report: [#25894] Problems with properties across files
Campbell Barton [Tue, 1 Feb 2011 21:24:59 +0000 (21:24 +0000)]
fix issue #2 raised by report: [#25894] Problems with properties across files

10 years agopartial revert for r34590, exclude render() from enabling the read-only state.
Campbell Barton [Tue, 1 Feb 2011 20:38:24 +0000 (20:38 +0000)]
partial revert for r34590, exclude render() from enabling the read-only state.
will re-open [#25845] and assign to Brecht.

10 years agoIcons in outliner were jittering a bit on sizing of the area.
Ton Roosendaal [Tue, 1 Feb 2011 17:54:02 +0000 (17:54 +0000)]
Icons in outliner were jittering a bit on sizing of the area.
Subpixel position issue... when is this ever correct? :)

10 years agoFix #25884: Crazy behaviour of the rotate brush
Sergey Sharybin [Tue, 1 Feb 2011 15:51:40 +0000 (15:51 +0000)]
Fix #25884: Crazy behaviour of the rotate brush

Rotation brush used to be crazy because it depends on normal of area
under brush, which is used as axis to rotate vertexes around and
this normal used to change during stroke.

Calculate normal from original mesh state for rotation tool too.

10 years agoFix for [#25879] Particle Duplication issue with Linked in Objects from Groups.
Janne Karhu [Tue, 1 Feb 2011 15:02:25 +0000 (15:02 +0000)]
Fix for [#25879] Particle Duplication issue with Linked in Objects from Groups.
* Only the first object (in scene object order) that instanced a dupligroup was rendered properly, because particle instances were checked for only after creating the render object (and even this check was done wrong).
* Now the actual render object is created only after both object and particle instances have been checked.

10 years agoBugfix #25891
Ton Roosendaal [Tue, 1 Feb 2011 13:35:21 +0000 (13:35 +0000)]
Bugfix #25891

Info header: option to switch scenes or add new ones has to be hidden
for "full screen" mode. Current full-screen code doesn't allow to
browse screens or switch scenes nicely.

10 years agoScript to test import operators, so a single command can execute an operator on all...
Campbell Barton [Tue, 1 Feb 2011 12:47:50 +0000 (12:47 +0000)]
Script to test import operators, so a single command can execute an operator on all files in a directory and optionally save out blend files for inspection.
This comes in handy for testing importers against 100's of files, quickly showing breakages and easier to setup then unit tests.

Example usage:

  blender.bin --background --python source/tests/ -- \
              --operator="bpy.ops.import_scene.obj" \
              --path="/data/testfiles/obj" \
              --match="*.obj" \
              --start=0 --end=50 \

Also found my name was spelt wrong in some places :)

10 years agocorrect fix for bug #23871, __main__ module was being overwritten in nested functions...
Campbell Barton [Tue, 1 Feb 2011 12:37:53 +0000 (12:37 +0000)]
correct fix for bug #23871, __main__ module was being overwritten in nested functions, so on returning from calling operators the __main__ module could be cleared and imported modules turn into None

... would clear a scripts namespace if running directly, not in a module.

Fix by backing up and restoring the __main__ module.

Also found BKE_reportf wasnt printing all reports in background mode as BKE_report() was doing.

10 years agoBugfix: Graph Editor menus were missing an entry for the "Smooth
Joshua Leung [Tue, 1 Feb 2011 11:54:05 +0000 (11:54 +0000)]
Bugfix: Graph Editor menus were missing an entry for the "Smooth
Keyframes" operator

Probably this was missed off, since the DopeSheet doesn't have this

10 years agoBugfix: Renaming Keying Sets didn't update timeline
Joshua Leung [Tue, 1 Feb 2011 11:39:51 +0000 (11:39 +0000)]
Bugfix: Renaming Keying Sets didn't update timeline

Keying Set RNA props were missing update notifiers

10 years agoNew Keyframe Type: "Jitter"
Joshua Leung [Tue, 1 Feb 2011 11:35:27 +0000 (11:35 +0000)]
New Keyframe Type: "Jitter"

While doing some animation work over the past few days, I found that
it would be useful to be able to tag keyframes as a another type yet:
"jitter" for fill-in secondary motion (i.e. blinks/hand-keyed camera
shake). Of course, what you really use these for is up to you, but
this is one more option when you need it :)

10 years agoown fix for bug #23871 (r33277), crashes when running multiple operators in a batch...
Campbell Barton [Tue, 1 Feb 2011 09:02:49 +0000 (09:02 +0000)]
own fix for bug #23871 (r33277), crashes when running multiple operators in a batch script with a double free.
Cant see why this happens but this different fix doesn't crash so using it instead.

10 years agobugfix [#25767] Addons cannot be upgraded through the UI
Campbell Barton [Tue, 1 Feb 2011 06:48:19 +0000 (06:48 +0000)]
bugfix [#25767] Addons cannot be upgraded through the UI
added option to overwrite.

10 years agoTargetless IK Bugfixes + Tweaks:
Joshua Leung [Tue, 1 Feb 2011 05:15:32 +0000 (05:15 +0000)]
Targetless IK Bugfixes + Tweaks:
- "CONSTRAINT_IK_AUTO" flag for targetless IK constraints was being
set in the wrong place. This is for the IK constraint data's flag, not
the generic constraint's flag
- Converting stack var "targetless" from type bConstraint to
bKinematicConstraint (i.e. constraint baseclass -> specialised data),
since it was only used in one place with a cast used there.
- When using targetless IK with no specified chain length, bone
rotation locks are taken into account too, saving a bit of extra setup

10 years agoPythons path functions - os.walk(). os.path.exists(). etc support bytes for paths...
Campbell Barton [Tue, 1 Feb 2011 04:24:47 +0000 (04:24 +0000)]
Pythons path functions - os.walk(). os.path.exists(). etc support bytes for paths as well as strings, support this with blender/rna too.

-*.load() functions were only accepting UTF-8 paths.
- rna functions/properties now accept byte values rather then strings for file paths.
- bpy.path.resolve_ncase now supports byte objects.

10 years agofix for 2 segfaults running in background mode.
Campbell Barton [Tue, 1 Feb 2011 02:54:29 +0000 (02:54 +0000)]
fix for 2 segfaults running in background mode.
- operators which reload G.main would crash blender if called from python and then accessed*
- WM_read_homefile_exec was setting the contexts Scene to NULL as a signal for the event system, this didnt work in background mode, crashing when property update functions expected scene to be set.

10 years agoreverting the new button in node editor.. will need to create a new
Daniel Salazar [Tue, 1 Feb 2011 01:32:12 +0000 (01:32 +0000)]
reverting the new button in node editor.. will need to create a new
operator to get the correct behavior for center backdrop

10 years agoAdded Center button to backdrop controls in node editor's side panel
Daniel Salazar [Tue, 1 Feb 2011 01:18:16 +0000 (01:18 +0000)]
Added Center button to backdrop controls in node editor's side panel
Inlined backdrop's zoom ui limits and hard limits so that
going to minimun and going back to 100 works

10 years agoBugfix [#25885] Auto IK ignores full rotation locks
Joshua Leung [Tue, 1 Feb 2011 00:43:28 +0000 (00:43 +0000)]
Bugfix [#25885] Auto IK ignores full rotation locks

... actually, this was just an off-by-one bug again.

10 years agodisable assert [#25877] Driven shapekeys: incorrect assertions in depsgraph.c
Campbell Barton [Tue, 1 Feb 2011 00:41:15 +0000 (00:41 +0000)]
disable assert [#25877] Driven shapekeys: incorrect assertions in depsgraph.c

10 years agoworkaround [#25845] Empty UI panels
Campbell Barton [Tue, 1 Feb 2011 00:32:50 +0000 (00:32 +0000)]
workaround [#25845] Empty UI panels
- now writing to RNA is disabled when inside render() call.
- disallow calling operators when writes are disabled.

Rendering runs in a thread so running operators from the thread is not safe unless rendering becomes a blocking operator again.

10 years agobugfix [#25846] Strange behaviour if index of render.layers[] is out of range
Campbell Barton [Mon, 31 Jan 2011 23:54:51 +0000 (23:54 +0000)]
bugfix [#25846] Strange behaviour if index of render.layers[] is out of range

10 years agoTodo issue: sculpting on deformed mesh
Sergey Sharybin [Mon, 31 Jan 2011 20:02:51 +0000 (20:02 +0000)]
Todo issue: sculpting on deformed mesh

Used a crazyspace approach (like in edit mode), but only modifiers with
deformMatricies are allowed atm (currently shapekeys and armature modifiers only).
All the rest modifiers had an warning message that they aren't applied because
of sculpt mode. Deformation of multires is also unsupported.

With all this restictions users will always see the actual "layer" (or maybe
mesh state would be more correct word) they are sculpting on.

Internal changes:
- All modifiers could have deformMatricies callback (the same as deformMatriciesEM but
  for non-edit mode usage)
- Added function to build crazyspace for sculpting (sculpt_get_deform_matrices), but it
  could be generalized for usage in other painting modes (particle edit mode, i.e)

- Implement crazyspace correction to support all kinds of deformation modifiers
- Maybe deformation of multires isn't so difficult?
- And maybe we could avoid extra bad-level-stub for ED_sculpt_modifiers_changed
  without code duplicating?

10 years agoBugfix #25874
Ton Roosendaal [Mon, 31 Jan 2011 17:28:03 +0000 (17:28 +0000)]
Bugfix #25874

Area split error: if the first split position was exactly aligned
with another 'edge' it merged the edges, causing the subdivision
layout to go haywire. Only happens in rare occasions, good find
this report :)

10 years agoRemoved OpenGL blending from node editor backdrop images in alpha channel mode. This...
Lukas Toenne [Mon, 31 Jan 2011 16:34:56 +0000 (16:34 +0000)]
Removed OpenGL blending from node editor backdrop images in alpha channel mode. This is a pure b/w image that doesn't need blending.

10 years agoIndentation fix.
Thomas Dinges [Mon, 31 Jan 2011 16:17:34 +0000 (16:17 +0000)]
Indentation fix.

10 years agoNode UI:
Thomas Dinges [Mon, 31 Jan 2011 16:16:15 +0000 (16:16 +0000)]
Node UI:
* Added Backdrop Panel inside the "Properties" area.
* Hard limit for the "zoom" value. Negative values doesn't make sense.
* Added a missing notifier for the Node backdrop move operator.

10 years agoSmall fix for color info in node editor: ACTIONMOUSE click was already used for node...
Lukas Toenne [Mon, 31 Jan 2011 15:18:30 +0000 (15:18 +0000)]
Small fix for color info in node editor: ACTIONMOUSE click was already used for node moving. Now ALT+ACTIONMOUSE must be used to get color info from the backdrop image.

10 years agoScons blenfont include for recent Node Backdrop commit.
Thomas Dinges [Mon, 31 Jan 2011 14:48:17 +0000 (14:48 +0000)]
Scons blenfont include for recent Node Backdrop commit.

10 years agoAdded backdrop image color information to the node editor. When clicking on empty...
Lukas Toenne [Mon, 31 Jan 2011 14:42:55 +0000 (14:42 +0000)]
Added backdrop image color information to the node editor. When clicking on empty space in the node editor, the pixel color values will be displayed on the bottom like in image editor.

10 years agoChanged alpha blending mode for image editor and node previews. This was using the...
Lukas Toenne [Mon, 31 Jan 2011 11:57:37 +0000 (11:57 +0000)]
Changed alpha blending mode for image editor and node previews. This was using the sum of the image and alpha-faded background, leading to almost-white transparent areas. New code uses correct GL_SRC_ALPHA for the source image.

10 years agoBugfix [#25876] bpy.ops.constraint.childof_set_inverse has no effect
Joshua Leung [Mon, 31 Jan 2011 11:19:23 +0000 (11:19 +0000)]
Bugfix [#25876] bpy.ops.constraint.childof_set_inverse has no effect

This was a two-part bug: a user error + API error.
* User Error: before calling bpy.ops.constraint.childof_set_inverse()
for a constraint defined on a bone, you firstly need to explicitly
make that bone the active bone. To do that, you do = posebone.bone # or something similar

* API Error: active bone setting was a bit too strict. It only allows
setting the active bone if the new bone comes from the same armature,
but was overlooking the fact that RNA pointers may have been created
through the object using the armature instead.

10 years agoAdded transparency feature to node editor backdrop, similar to image editor. Alpha...
Lukas Toenne [Mon, 31 Jan 2011 11:17:50 +0000 (11:17 +0000)]
Added transparency feature to node editor backdrop, similar to image editor. Alpha blending can be enabled by a button when "Use Backdrop" is selected.

10 years agoLogic UI: Servo Control (Motion/ObjectActuator) default options + camera actuator...
Dalai Felinto [Mon, 31 Jan 2011 07:52:45 +0000 (07:52 +0000)]
Logic UI: Servo Control (Motion/ObjectActuator) default options + camera actuator tweak
In 2.49 we had this implemented in the logic_windows.c. I think I skipped this when porting the new UI. I probably didn't know how to do it back then or was waiting for something. Anyhoo, it's all good now.

For the records, the Logic Bricks that I haven't gone over to make sure everything is 100% are:
Filter 2D, Constraints and Animation (action, shapekey, fcurve)

I'm going over them this week, so the Logic Bricks are close to receive a "revisited review check-up" ISO 9000 :)

10 years ago[#25693] Netrender "shadow" images with last frame always appear
Martin Poirier [Sun, 30 Jan 2011 22:15:50 +0000 (22:15 +0000)]
[#25693] Netrender "shadow" images with last frame always appear

Better handling of FSAA when downloading results and on slaves.

10 years agoTotal displacement levels should be set in multires_topology_changed
Sergey Sharybin [Sun, 30 Jan 2011 17:55:48 +0000 (17:55 +0000)]
Total displacement levels should be set in multires_topology_changed

10 years agoBugfix #25859
Ton Roosendaal [Sun, 30 Jan 2011 17:03:01 +0000 (17:03 +0000)]
Bugfix #25859

Outliner: click on 'restrict' options also selected/deselected the
item itself. Fix provided by Alexander Kuznetsov. Thanks!

10 years agomoved texture_space scaling factor from glsl to C.
M.G. Kishalmi [Sun, 30 Jan 2011 16:57:28 +0000 (16:57 +0000)]
moved texture_space scaling factor from glsl to C.

10 years agobugfix #25867
M.G. Kishalmi [Sun, 30 Jan 2011 16:24:23 +0000 (16:24 +0000)]
bugfix #25867

fix for objectspace bumpmapping

10 years agoBugfix #25870
Ton Roosendaal [Sun, 30 Jan 2011 16:19:08 +0000 (16:19 +0000)]
Bugfix #25870

Operator "Select linked flat faces" didn't initialize the default
angle. That made it fail being called via menus.

10 years agoRemoved bad copied UI strings and comment from texture slot rna code.
Ton Roosendaal [Sun, 30 Jan 2011 16:17:08 +0000 (16:17 +0000)]
Removed bad copied UI strings and comment from texture slot rna code.

10 years agoremove nan-makefiles
Campbell Barton [Sun, 30 Jan 2011 15:29:22 +0000 (15:29 +0000)]
remove nan-makefiles

10 years agoFix for object-space bumpmapping in GLSL. Fix provided
Ton Roosendaal [Sun, 30 Jan 2011 14:43:24 +0000 (14:43 +0000)]
Fix for object-space bumpmapping in GLSL. Fix provided
by Morten Mikkelsen in IRC.

10 years agoBugfix #25855
Ton Roosendaal [Sun, 30 Jan 2011 14:19:12 +0000 (14:19 +0000)]
Bugfix #25855

New bump code: option "Texture space" only works for image textures.
It appears this option is some kind of "fake normal map" actually.
Needs nicer name... maybe "Image space".

Now it ignores the option when no image texture is used.

10 years agoBugfix #25840
Ton Roosendaal [Sun, 30 Jan 2011 13:51:02 +0000 (13:51 +0000)]
Bugfix #25840

UI bug: when a button has an open menu, the menu closed on any
mouse-over of other buttons in this panel. That's not too bad,
but it didn't check for whether the mouse was already inside the
menu itself (respecting safety region).

The bug showed error on zoomed in UI, using FPS presets, in case
the menu-button was drawing aligned with other buttons. A real
boundary case... :)

10 years agoAnd here's a decent fix for correctly recognizing the the
Ton Roosendaal [Sun, 30 Jan 2011 13:12:03 +0000 (13:12 +0000)]
And here's a decent fix for correctly recognizing the the
.blend1 etc backups.
Proves again that lazy coders only make bad code :)

Implementation note:
The filewindow now recoginizes .blend version backups as
a special type, so filtering for .blend files themselves
ignores it. However, they're recognized correctly as valid
.blend files, and draw an icon as .blend file when filtering
is off. Can become a distinct icon if we want...

10 years agoStupid error in commit to allow .blend1 and .blend2 being dropped in
Ton Roosendaal [Sun, 30 Jan 2011 12:26:16 +0000 (12:26 +0000)]
Stupid error in commit to allow .blend1 and .blend2 being dropped in
window caused .blend itself to be not seen :) Mea Maxima Culpa!

10 years agoBetter property names for backdrop RNA
Daniel Salazar [Sun, 30 Jan 2011 07:04:12 +0000 (07:04 +0000)]
Better property names for backdrop RNA

10 years agoRNA for node editor backdrop zoom and offset. Thanks Moguri for help
Daniel Salazar [Sun, 30 Jan 2011 06:58:36 +0000 (06:58 +0000)]
RNA for node editor backdrop zoom and offset. Thanks Moguri for help

10 years agoAdded handy option to delete all vgroups in the dropdown menu
Daniel Salazar [Sat, 29 Jan 2011 23:51:42 +0000 (23:51 +0000)]
Added handy option to delete all vgroups in the  dropdown menu

10 years agoBugfix #25750
Ton Roosendaal [Sat, 29 Jan 2011 18:37:40 +0000 (18:37 +0000)]
Bugfix #25750

CTRL+L link modifiers (actually, it copies!) didn't call an update
for new dependencies.

10 years agoTodo item:
Ton Roosendaal [Sat, 29 Jan 2011 17:56:34 +0000 (17:56 +0000)]
Todo item:

When dropping image on an object, it now sets view to show texture in
solid view mode. Nicer interaction, and good for dummies & demos. :)

10 years agoTodo list fix: .blend backup files are recognized as such now;
Ton Roosendaal [Sat, 29 Jan 2011 17:47:22 +0000 (17:47 +0000)]
Todo list fix: .blend backup files are recognized as such now;
for drop inside Blender window and icons. (.blend1, .blend2, etc).

10 years agoBug report #25722
Ton Roosendaal [Sat, 29 Jan 2011 16:27:48 +0000 (16:27 +0000)]
Bug report #25722

Allowing IOR smaller than 1.0.
This is for people who want to trace air bubbles under water :)

10 years agoFixes for GLSL bump code; it was using calls not supported for
Ton Roosendaal [Sat, 29 Jan 2011 16:13:15 +0000 (16:13 +0000)]
Fixes for GLSL bump code; it was using calls not supported for
older GLSL versions (< 1.3)

Thanks Matthew M:
- adding mat3 from ma4 function
- removal of transpose()

And I've hacked in myself a textureSize() replacement, the image
size gets passed on to function now.

10 years agoISO C90 fix
M.G. Kishalmi [Sat, 29 Jan 2011 12:09:11 +0000 (12:09 +0000)]
ISO C90 fix

10 years agomatching 3Dview GLSL shaders for the new bumpmapping methods
M.G. Kishalmi [Sat, 29 Jan 2011 12:01:11 +0000 (12:01 +0000)]
matching 3Dview GLSL shaders for the new bumpmapping methods

10 years agonew bumpmapping options for the renderer
M.G. Kishalmi [Sat, 29 Jan 2011 11:56:11 +0000 (11:56 +0000)]
new bumpmapping options for the renderer
oldbump -> original
newbump -> compatible
 *new* -> default (3tap)
 *new* -> best quality (5tap)

the latter two have an option to apply bumpmapping in
 viewspace - much like displacement mapping
 objectspace - default (scales with the object)
 texturespace - much like normal mapping (scales)

10 years ago"Whole Character" KeyingSet Bugfix: RNA paths for custom properties
Joshua Leung [Sat, 29 Jan 2011 09:47:48 +0000 (09:47 +0000)]
"Whole Character" KeyingSet Bugfix: RNA paths for custom properties
were getting formed wrongly

Although the RNA paths for the custom properties could get evaluated
correctly, keyframe status highlights in buttons didn't always work
correctly, and would lead to a duplicate F-Curve for the same setting
getting created.

10 years agoCharacter Animation Goodie: "Whole Character" Builtin Keying Set
Joshua Leung [Sat, 29 Jan 2011 03:01:51 +0000 (03:01 +0000)]
Character Animation Goodie: "Whole Character" Builtin Keying Set

This commit introduces a new Keying Set: "Whole Character", which is
specially designed for character animators blocking out their
animation. It should make animating with rigs such as the Sintel rigs
(and other "mainstream" setups, though others may also work with a few
modifications) much easier.

It automatically determines which properties on every bone in the
active rig should be keyframed, avoiding an initial set up step where
properties may be missed, or non-animatable properties are also
needlessly keyframed. To do this, it relies on several rules:
1) All bones in the armature, regardless of visibility status are
considered, so that hiding some layers on some keyframes then
keyframing them later won't create problems with earlier poses
2) Bones starting with certain prefixes, i.e. DEF, MCH, VIS, etc. (the
full list is available in the code for this, and can be/is meant to be
modified by riggers in their own versions as they see fit), so that
some bones on hidden layers which shouldn't be seen by animators are
not keyframed
3) Locked transforms AREN'T keyframed
4) All custom properties ARE keyframed - currently this is the best we
can do, as it's hard to tell if they're needed or not, or even if
they're already driven.

10 years agoFix for [#25825] Boolean doesn't work in command-line rendering (2.56)
Janne Karhu [Fri, 28 Jan 2011 15:24:02 +0000 (15:24 +0000)]
Fix for [#25825] Boolean doesn't work in command-line rendering (2.56)
* DAG_on_load_update wasn't called at all for background rendering, so any non-animated object data wasn't updated properly.

10 years agoSmall feature request: using texture buttons (mapping) now updates
Ton Roosendaal [Fri, 28 Jan 2011 14:51:03 +0000 (14:51 +0000)]
Small feature request: using texture buttons (mapping) now updates
GLSL view of texture as well.

10 years agoFix for [#25843] Multiple Scene Strip in Sequencer, bad scrubbing for armatures in...
Janne Karhu [Fri, 28 Jan 2011 13:14:01 +0000 (13:14 +0000)]
Fix for [#25843] Multiple Scene Strip in Sequencer, bad scrubbing for armatures in viewport
* Sequencer didn't restore the scene properly after drawing a frame other than the current frame.

10 years agoFirst step towards having a 2-pass reading of COLLADA .dae files.
Nathan Letwory [Fri, 28 Jan 2011 12:56:30 +0000 (12:56 +0000)]
First step towards having a 2-pass reading of COLLADA .dae files.

10 years agoMake version check more future proof.
Nathan Letwory [Fri, 28 Jan 2011 08:51:15 +0000 (08:51 +0000)]
Make version check more future proof.

10 years agoFix for [#25713] VSE shows and renders wrong straight alpha gradient even after conve...
Janne Karhu [Fri, 28 Jan 2011 00:59:42 +0000 (00:59 +0000)]
Fix for [#25713] VSE shows and renders wrong straight alpha gradient even after convert to premul is checked
* Caching of the start and end stills were just referencing the original imbuf (which got premultiplied after the caching), so as a result most of the time the premul was applied twice.
* Now the start and end stills are stored in the cache as duplicates of the original (non modified) imbuf.

10 years agoIn the Timeline, keyframe lines are now drawn in front of the frame
Joshua Leung [Fri, 28 Jan 2011 00:52:31 +0000 (00:52 +0000)]
In the Timeline, keyframe lines are now drawn in front of the frame
indicator. This is so that it will be possible to see if there is a
keyframe on the current frame by just looking in the timeline.

10 years ago[#25783] Network rendering fails with windows paths
Martin Poirier [Fri, 28 Jan 2011 00:45:53 +0000 (00:45 +0000)]
[#25783] Network rendering fails with windows paths

Potential fix. Absolute windows path weren't detected as absolute on linux.

10 years ago[#25671] Network Render freezes/blocks blender
Martin Poirier [Fri, 28 Jan 2011 00:00:10 +0000 (00:00 +0000)]
[#25671] Network Render freezes/blocks blender

Decreasing timeout and increasing refresh period

10 years agoMore logical ordering of Empty draw types. Made Plain Axes default for
Daniel Salazar [Thu, 27 Jan 2011 21:05:01 +0000 (21:05 +0000)]
More logical ordering of Empty draw types. Made Plain Axes default for
new empties

10 years agoAnd on your left you can see something much nicer (while I fix this here on your...
Nathan Letwory [Thu, 27 Jan 2011 19:49:43 +0000 (19:49 +0000)]
And on your left you can see something much nicer (while I fix this here on your right).

10 years agoCommit to cope with API changes in OpenCOLLADA (latest for Windows right now r827).
Nathan Letwory [Thu, 27 Jan 2011 19:39:06 +0000 (19:39 +0000)]
Commit to cope with API changes in OpenCOLLADA (latest for Windows right now r827).

10 years agoSilly mistake in own previous commit, now we have particles again!
Janne Karhu [Thu, 27 Jan 2011 17:29:22 +0000 (17:29 +0000)]
Silly mistake in own previous commit, now we have particles again!

10 years agor34526 removed a line which had an unused return value but still needed to run.
Campbell Barton [Thu, 27 Jan 2011 12:36:48 +0000 (12:36 +0000)]
r34526 removed a line which had an unused return value but still needed to run.

10 years agoFixing some clang reported issues in particle code.
Janne Karhu [Thu, 27 Jan 2011 12:21:14 +0000 (12:21 +0000)]
Fixing some clang reported issues in particle code.
* Not really bugs, but some code cleanup and clarification.

10 years agofix for gcc 4.6 commit: this is needed for osx too.
Campbell Barton [Thu, 27 Jan 2011 11:17:23 +0000 (11:17 +0000)]
fix for gcc 4.6 commit: this is needed for osx too.

10 years agogcc 4.6 compatibility commit r34520 broke OSX, this should work now.
Campbell Barton [Thu, 27 Jan 2011 09:40:20 +0000 (09:40 +0000)]
gcc 4.6 compatibility  commit r34520 broke OSX, this should work now.

10 years agointernal changes, script writers won't notice.
Campbell Barton [Thu, 27 Jan 2011 06:48:14 +0000 (06:48 +0000)]
internal changes, script writers won't notice.
disable getattr metaclass forwarding attributes from the python class, eg: !=['foo']

... This was convenient but too tricky to properly maintain with attribute assignment and attributes defined within the class.
avoid doubles in dir() by converting to a set and then back to a list.

10 years agoBugfix [#25823] When objects are parented to the same objects that
Joshua Leung [Thu, 27 Jan 2011 01:29:40 +0000 (01:29 +0000)]
Bugfix [#25823] When objects are parented to the same objects that
they have some rotation-affecting constraint (i.e. Track To and Copy
Rotation) targetting, transforming the objects (directly, using GKEY
-> grab) becomes unreliable.

This was caused by a typo in some code checking for some
OB_NO_CONSTRAINTS under "flag" instead of "transflag"

10 years ago[#25815] Patch gcc 4.6
Campbell Barton [Thu, 27 Jan 2011 00:02:25 +0000 (00:02 +0000)]
[#25815] Patch gcc 4.6
with minor edits, made sure it works in CMake too.

10 years agoSilencing some annoying key-event prints in Win32 console:
Joshua Leung [Wed, 26 Jan 2011 23:58:20 +0000 (23:58 +0000)]
Silencing some annoying key-event prints in Win32 console:

The console was getting flooded with output like


all as a result of what looks like a debugging print. Whoever put this
in, you can get back your debugging prints by enabling BF_GHOST_DEBUG
in your local config :)

10 years agoBugfix [#25707] / Todo Item: "Local Space" for Object constraining
Joshua Leung [Wed, 26 Jan 2011 23:33:08 +0000 (23:33 +0000)]
Bugfix [#25707] / Todo Item: "Local Space" for Object constraining

For Constraints, there's now a working "Local" Space for Objects
without parents. This is defined as relative to the object's rotated
set of axes which results from rotation that gets set via "rotation"
transform properties.

I'm not sure whether this different behaviour between parented and
unparented objects will be too confusing (and thus require separate
settings + a round of version patching), so I'll wait until we get
proper testing from experienced riggers first.

10 years agoUsability issue noted while self-testing some stuff...
Joshua Leung [Wed, 26 Jan 2011 22:38:05 +0000 (22:38 +0000)]
Usability issue noted while self-testing some stuff...

Giving modifiers more descriptive tooltips for "Vertex Group" fields
than just the useless/meaningless "Vertex Group name" tooltip they
used to have.

10 years agoBullet-proofing mesh vertex group RNA wrapping, after double checking
Joshua Leung [Wed, 26 Jan 2011 22:31:14 +0000 (22:31 +0000)]
Bullet-proofing mesh vertex group RNA wrapping, after double checking
on whether vertexgroup weight animation worked

10 years agobge fix: debug text didn't have GL_DEPTH disabled - text got clipped when we have...
Dalai Felinto [Wed, 26 Jan 2011 22:16:58 +0000 (22:16 +0000)]
bge fix: debug text didn't have GL_DEPTH disabled - text got clipped when we have objects too close to the camera
fix only in embed bge, blenderplayer seems to be doing differently.
-- reported live by Mike Pan

10 years agoRemoving some old stuff from old animation system that isn't needed
Joshua Leung [Wed, 26 Jan 2011 22:01:51 +0000 (22:01 +0000)]
Removing some old stuff from old animation system that isn't needed
anymore (shapekeys stuff)