10 years agooption to immediately write single render to a file added for OpenGL render.
Campbell Barton [Tue, 16 Nov 2010 15:15:20 +0000 (15:15 +0000)]
option to immediately write single render to a file added for OpenGL render.

10 years agobugfix [#24462] UV Layouts saved as PNG results in two files (rename bug)
Campbell Barton [Tue, 16 Nov 2010 14:45:27 +0000 (14:45 +0000)]
bugfix [#24462] UV Layouts saved as PNG results in two files (rename bug)
renaming failed in some cases, now we can just render to a file.

10 years agooption to write images to a files on single frame renders, this isn't accessed by...
Campbell Barton [Tue, 16 Nov 2010 14:40:46 +0000 (14:40 +0000)]
option to write images to a files on single frame renders, this isn't accessed by the UI at the moment, but could eventually be used for saving test-renders.

The main reason to have this is so renders can be scripted to write to a specific file without having to do annoying tricks like set a dummy start/end frame range, render an animation and work out the current frame image will be written to, then rename after rendering.

Also made some 'char *' args into 'const char *'

10 years agoBug #22585
Ton Roosendaal [Tue, 16 Nov 2010 13:41:39 +0000 (13:41 +0000)]
Bug #22585

Using texture nodes for displacement crashes, a conflict between using
nodes in render and for displacement at same time. Code simply disables
texture nodes for displacement for now, until we have better handling for it.
(on our long todo)

10 years agoCurve's UI minor fix:
Sergey Sharybin [Tue, 16 Nov 2010 13:25:21 +0000 (13:25 +0000)]
Curve's UI minor fix:

- "Use Deformed" replaced back with "Fill Deformed"
- Use a bit more informative tooltip for this option

10 years agoedits to image save operator, no functional changes.
Campbell Barton [Tue, 16 Nov 2010 13:08:24 +0000 (13:08 +0000)]
edits to image save operator, no functional changes.
- don't rename the image when saving (problematic if the image is used with linked libraries)
- file writing and path updating was duplicated for multilayer images.

10 years agoUV Layout Export was missing UV Layer check.
Campbell Barton [Tue, 16 Nov 2010 12:54:44 +0000 (12:54 +0000)]
UV Layout Export was missing UV Layer check.

10 years agoRemoving unnecesary print "draw swap exchange"
Ton Roosendaal [Tue, 16 Nov 2010 12:29:30 +0000 (12:29 +0000)]
Removing unnecesary print "draw swap exchange"

10 years agoFixed wrong rna name for the old "UV Orco" option.
Ton Roosendaal [Tue, 16 Nov 2010 12:10:57 +0000 (12:10 +0000)]
Fixed wrong rna name for the old "UV Orco" option.

It was called "map on length", but it actually makes the UV
values of curves/nurbs to become used as "Generated" texture
map input.

Sorry; this might break own local UI py script saves... :)

10 years agobugfix [#24747] Blender crash entering in Sculpt Mode
Campbell Barton [Tue, 16 Nov 2010 09:47:01 +0000 (09:47 +0000)]
bugfix [#24747] Blender crash entering in Sculpt Mode
 rotate_m4 was being called with a zero axis.

10 years agobugfix [#24746] Align Camera to View locks 3D Editor in Camera Perspective View
Campbell Barton [Tue, 16 Nov 2010 09:35:58 +0000 (09:35 +0000)]
bugfix [#24746] Align Camera to View locks 3D Editor in Camera Perspective View

10 years agofix for creating movie paths with non utf8 names.
Campbell Barton [Tue, 16 Nov 2010 08:53:55 +0000 (08:53 +0000)]
fix for creating movie paths with non utf8 names.
button test if non utf8 chars are allowed was inverted.

10 years agoFBX Export, small changes made while looking into reported bug. (no functional changes)
Campbell Barton [Tue, 16 Nov 2010 04:32:35 +0000 (04:32 +0000)]
FBX Export, small changes made while looking into reported bug. (no functional changes)
- Warn for armature deformed meshes which are scaled, these don't work quite the same as in blender, reported as [#24663].
- Use matrix.decompose() to convert a matrix to loc/rot/scale.
- get vert/edge/face lists for each mesh only once.
- faster euler rad -> deg conversion function.

10 years agofix for matrix * vector rotation order.
Campbell Barton [Tue, 16 Nov 2010 03:11:22 +0000 (03:11 +0000)]
fix for matrix * vector rotation order.

10 years agopatch [#24742] materials.pop() doesn't decrement user count
Campbell Barton [Tue, 16 Nov 2010 02:23:20 +0000 (02:23 +0000)]
patch [#24742] materials.pop() doesn't decrement user count
from Dan Eicher (dna)

10 years agopatch #24737] PyCObject depreciated in py3k [patch]
Campbell Barton [Tue, 16 Nov 2010 02:18:50 +0000 (02:18 +0000)]
patch #24737] PyCObject depreciated in py3k [patch]
from Dan Eicher (dna), use PyCapsule rather then PyCObject

10 years agofix for fix, r33086.
Campbell Barton [Tue, 16 Nov 2010 01:19:37 +0000 (01:19 +0000)]
fix for fix, r33086.
- incorrect range check broke ZYX euler rotations, use MIN/MAX constants so this doesn't happen again.
- BGE Armature PyAPI also wasn't using correct min/max with rotation modes.
- clamp on file read rather then when calling the rotation functions, so developers don't use invalid args without realizing it.
- added assert() checks for debug builds so invalid axis constants don't slip through.

10 years agoBugfix #24726
Ton Roosendaal [Mon, 15 Nov 2010 16:26:30 +0000 (16:26 +0000)]
Bugfix #24726

Doing F1-load a lot of times on same .blend could crash.
Janne karhu provided a potential fix, which is good to add
anyway. Will ask him to verify too.

Added XXX warning for these lines, after filesel exec no
context variables should be re-used. Is for later investigation.

10 years agoBugfix, reported in IRC
Ton Roosendaal [Mon, 15 Nov 2010 13:33:38 +0000 (13:33 +0000)]
Bugfix, reported in IRC

The enum "rotmode" was read using an array, without checking for boundary
cases, causing crashes on bad input. (Wahooney report 2, thanks!)

10 years agobugfix [#24696] Export OBJ - Selection Only toggle button has the wrong default state.
Campbell Barton [Mon, 15 Nov 2010 13:11:40 +0000 (13:11 +0000)]
bugfix [#24696] Export OBJ - Selection Only toggle button has the wrong default state.
Added convenience function to operators, 'as_keywords()', so operator settings can be passed directly to a function as keyword arguments.

The problem in this case was that dictionary access to operator properties was not returning rna-property defaults, so as_keywords() ensures all defaults are set.

10 years agoFix [#24310] With high poly numbers when sculpting, modifier keys hang
Nathan Letwory [Mon, 15 Nov 2010 12:05:11 +0000 (12:05 +0000)]
Fix [#24310] With high poly numbers when sculpting, modifier keys hang
reported by Eclectiel L

When working with very heavy scenes Blender can seem to 'hang' (not responding). Key events that happen
during this period may get lost, especially for modifier keys.

Adding extra handling to account for these situations.

10 years agoBugfix (IRC report)
Ton Roosendaal [Mon, 15 Nov 2010 11:45:54 +0000 (11:45 +0000)]
Bugfix (IRC report)

Bone drawing code failed to check the correnct parent pointer, causing
NULL pointer to be read. Thanks Wahooney!

10 years agoBugfix #24719: Layer ipocurves from Blender 2.49 wrongly ported to Blender 2.5x
Joshua Leung [Mon, 15 Nov 2010 10:48:48 +0000 (10:48 +0000)]
Bugfix #24719: Layer ipocurves from Blender 2.49 wrongly ported to Blender 2.5x

Found and fixed a few problems here, but strangely I don't recall seeing any of these a few months ago when this conversion (probably last) worked well ...

10 years agoFix [#24552] Exception when starting Blender on Windows XP SP3
Nathan Letwory [Mon, 15 Nov 2010 10:29:42 +0000 (10:29 +0000)]
Fix [#24552] Exception when starting Blender on Windows XP SP3
Reported by Ruud van Eeghem

Instead of running vcredist, which can fail when installing as normal user, have the DLLs
like our zip distribution bundled already inside install dir.

10 years agoFix for [#24724] Emission settings of Particles with no physics are stuck to Previous...
Janne Karhu [Mon, 15 Nov 2010 09:15:23 +0000 (09:15 +0000)]
Fix for [#24724] Emission settings of Particles with no physics are stuck to Previous newtonian settings.

10 years agofix for very old crash when setting an empty object as the camera and using stars.
Campbell Barton [Mon, 15 Nov 2010 09:00:09 +0000 (09:00 +0000)]
fix for very old crash when setting an empty object as the camera and using stars.

10 years agobugfix [#24708] World Notifier Problems
Campbell Barton [Mon, 15 Nov 2010 08:53:35 +0000 (08:53 +0000)]
bugfix [#24708] World Notifier Problems
also draw stars when 'Only Render' option is enabled.

10 years agobugfix [#24704] UV editor: [x] modified does not update on change of modifiers
Campbell Barton [Mon, 15 Nov 2010 08:03:20 +0000 (08:03 +0000)]
bugfix [#24704] UV editor: [x] modified does not update on change of modifiers
- VBO UV Edge display wasn't allocating a large enough array for drawing.
- VBO UV Edge drawing was using an edge flag with faces.
- notifier for modifiers updating the UV window.

10 years agobugfix [#24704] UV editor: [x] modified does not update on change of modifiers
Campbell Barton [Mon, 15 Nov 2010 07:07:14 +0000 (07:07 +0000)]
bugfix [#24704] UV editor: [x] modified does not update on change of modifiers

10 years ago- 'matrix_basis' for objects and pose bones, this is an alternative access to directl...
Campbell Barton [Mon, 15 Nov 2010 06:38:07 +0000 (06:38 +0000)]
- 'matrix_basis' for objects and pose bones, this is an alternative access to directly adjusting the loc/scale/rot.
- pose bone 'matrix_local' wasn't well named since it didn't work like object or regular bones.
- pose bone matrix values for rna had array access rather then 4x4 matrix access.

 note: for pose bones update scripts by renaming 'matrix_local' --> 'matrix_basis'

10 years agopatch from Dan Eicher to support intel C++ compiler for CMake on *nix.
Campbell Barton [Mon, 15 Nov 2010 05:32:49 +0000 (05:32 +0000)]
patch from Dan Eicher to support intel C++ compiler for CMake on *nix.

10 years agorevert change from r32955.
Campbell Barton [Mon, 15 Nov 2010 03:13:28 +0000 (03:13 +0000)]
revert change from r32955.
This added a poll function to the Panel base class but this means that all panels register as having a poll() function which is called a lot and does nothing, raising an exception and removing it because of how python implements hasattr().

Found when checking why exceptions were continuously raised on redraw.

Martin, can you check on netrender?

10 years agofix [#24712] 3ds_import fix
Campbell Barton [Mon, 15 Nov 2010 00:07:38 +0000 (00:07 +0000)]
fix [#24712] 3ds_import fix
Rather then applying the proposed fix, enabling 'Apply Transform' works in almost all cases including the reported one.

There are some files that don't work with 'Apply Transform', which is why the option is worth keeping.

also remove unneeded calls to paint_facesel_test()

10 years agocreating the editmesh structure was running paint_facesel_test() for every vert and...
Campbell Barton [Sun, 14 Nov 2010 23:37:03 +0000 (23:37 +0000)]
creating the editmesh structure was running paint_facesel_test() for every vert and selected face.
not so efficient, check once.

10 years agounreported fixes for 3ds import
Campbell Barton [Sun, 14 Nov 2010 22:30:51 +0000 (22:30 +0000)]
unreported fixes for 3ds import
- non ASCII names would break loading.
- meshes with no faces would break loading too.

10 years agonetrender
Martin Poirier [Sun, 14 Nov 2010 22:11:56 +0000 (22:11 +0000)]

Adding retries on initial slave connection.

10 years agor33039 added dependency to COLLADA for blenderplayer, but it's really not needed...
Nathan Letwory [Sun, 14 Nov 2010 20:40:55 +0000 (20:40 +0000)]
r33039 added dependency to COLLADA for blenderplayer, but it's really not needed there.

Stubbing for now.

10 years agoLogic UI bugfix: [#24628] two specific tooltips of keyboard sensor reversed
Dalai Felinto [Sun, 14 Nov 2010 19:46:14 +0000 (19:46 +0000)]
Logic UI bugfix: [#24628] two specific tooltips of keyboard sensor reversed
I also changed the order of them (target and log toggle) in the UI to match 2.49

10 years agoMove rotOrder to proper transform data structure
Martin Poirier [Sun, 14 Nov 2010 19:19:58 +0000 (19:19 +0000)]
Move rotOrder to proper transform data structure

10 years agoSeamless texture used for beveled curve is now really seamless (thanks to Mario G...
Sergey Sharybin [Sun, 14 Nov 2010 19:06:39 +0000 (19:06 +0000)]
Seamless texture used for beveled curve is now really seamless (thanks to Mario G. Kishalmi aka lmg)

10 years agoCorrect description for Projection property (it doesn't just work on vertice)
Martin Poirier [Sun, 14 Nov 2010 18:31:32 +0000 (18:31 +0000)]
Correct description for Projection property (it doesn't just work on vertice)

10 years agobugfix [#24697]
Martin Poirier [Sun, 14 Nov 2010 18:27:25 +0000 (18:27 +0000)]
bugfix [#24697]

Proper fix: change the poll function to reflect actual operator requirements.

10 years ago[#24639] Snap to Face (retopo) doesn't work when clipping is enabled in mirror modifier.
Martin Poirier [Sun, 14 Nov 2010 16:31:06 +0000 (16:31 +0000)]
[#24639] Snap to Face (retopo) doesn't work when clipping is enabled in mirror modifier.

Apply project snap at the very end.

10 years ago== filebrowser ==
Andrea Weikert [Sun, 14 Nov 2010 11:59:42 +0000 (11:59 +0000)]
== filebrowser ==
* compile fix on non-Windows platforms.

10 years ago== filebrowser ==
Andrea Weikert [Sun, 14 Nov 2010 10:53:49 +0000 (10:53 +0000)]
== filebrowser ==
* removed now unused function file_string_width_shortened.

10 years ago== filebrowser ==
Andrea Weikert [Sun, 14 Nov 2010 10:48:36 +0000 (10:48 +0000)]
== filebrowser ==
* drawing code cleanup.
* list drawing code now uses uiStyleFontDraw like buttons etc.

10 years agobugfix [#24668] Deleting armature objects removes a user from its action, eventually...
Campbell Barton [Sun, 14 Nov 2010 09:20:31 +0000 (09:20 +0000)]
bugfix [#24668] Deleting armature objects removes a user from its action, eventually leading to data loss

10 years agobugfix [#24697] Trying to run bpy.ops.transform.create_orientation crashes Blender
Campbell Barton [Sun, 14 Nov 2010 08:26:44 +0000 (08:26 +0000)]
bugfix [#24697] Trying to run bpy.ops.transform.create_orientation crashes Blender

10 years agoForgot to Add NodeLink to the Access Struct file.
Thomas Dinges [Sun, 14 Nov 2010 08:11:58 +0000 (08:11 +0000)]
Forgot to Add NodeLink to the Access Struct file.

10 years agobugfix [#24702] 3Dmanipulator does not display if view's layers are not synchronize...
Campbell Barton [Sun, 14 Nov 2010 07:49:07 +0000 (07:49 +0000)]
bugfix [#24702] 3Dmanipulator does not display if view's layers are not synchronize to scene's layers.

10 years agofix for own recent error, [#24695] column_vector_multiplication call writes past...
Campbell Barton [Sun, 14 Nov 2010 07:42:14 +0000 (07:42 +0000)]
fix for own recent error, [#24695] column_vector_multiplication call writes past end of array
was setting the vector array out of bounds with vec*=matrix, where the vector wasnt size 4.

10 years agofix for own error in recent commit. add a back NULL terminator to the string in text_...
Campbell Barton [Sun, 14 Nov 2010 07:28:53 +0000 (07:28 +0000)]
fix for own error in recent commit. add a back NULL terminator to the string in text_font_draw_character.

10 years agoupdate for mathutils vector/matrix order change.
Campbell Barton [Sun, 14 Nov 2010 07:02:55 +0000 (07:02 +0000)]
update for mathutils vector/matrix order change.

10 years agoPatch [#21942] Node links access by Andrey Izrantsev (bdancer) Thanks!
Thomas Dinges [Sat, 13 Nov 2010 22:38:33 +0000 (22:38 +0000)]
Patch [#21942] Node links access by Andrey Izrantsev (bdancer) Thanks!

This adds Node Link Acces in RNA.

10 years agoFix for [#24654] Sound Actuator doesn't find the file when Blender is reopened.
Joerg Mueller [Sat, 13 Nov 2010 13:44:45 +0000 (13:44 +0000)]
Fix for [#24654] Sound Actuator doesn't find the file when Blender is reopened.

10 years agoBugfix #20382
Ton Roosendaal [Fri, 12 Nov 2010 17:35:51 +0000 (17:35 +0000)]
Bugfix #20382

Fixed old annoyance in Search menu, with a load of object-mode
operators showing up in editmode.
It's much cleaner now, but it will take further work and
investigation to have context & polls work satisfying for all cases.

10 years agoMakefile fix for compiling with quicktime.
Ton Roosendaal [Fri, 12 Nov 2010 16:14:31 +0000 (16:14 +0000)]
Makefile fix for compiling with quicktime.

10 years agobugfix [#24661] Object.find_armature() only works on meshes
Campbell Barton [Fri, 12 Nov 2010 15:05:57 +0000 (15:05 +0000)]
bugfix [#24661] Object.find_armature() only works on meshes

10 years agoBugfix #24335
Ton Roosendaal [Fri, 12 Nov 2010 14:59:01 +0000 (14:59 +0000)]
Bugfix #24335

ZCombine node in compositor ignored alpha values. Enabling it
would break compatibility though, so it's a tickbox option now.

Patch provided by reporter, Martin Lubich. Thanks!

10 years agoHide "active" checkbox in ui for "fluid" type fluid objects as it's not used by fluidsim.
Janne Karhu [Fri, 12 Nov 2010 14:54:40 +0000 (14:54 +0000)]
Hide "active" checkbox in ui for "fluid" type fluid objects as it's not used by fluidsim.
* Response to report [#24670] Keyframe fluid on/off does not work

10 years agoRelated to #24653: added scene.collada_export() function, to use instead of an
Brecht Van Lommel [Fri, 12 Nov 2010 14:36:58 +0000 (14:36 +0000)]
Related to #24653: added scene.collada_export() function, to use instead of an
operator for external render engines, since operators should not be called in
the render() callback.

10 years agobugfix [#24682] Render artifacts with mat node
Campbell Barton [Fri, 12 Nov 2010 12:45:55 +0000 (12:45 +0000)]
bugfix [#24682] Render artifacts with mat node

10 years agoadd back red tint for zero user datablocks.
Campbell Barton [Fri, 12 Nov 2010 11:49:33 +0000 (11:49 +0000)]
add back red tint for zero user datablocks.

10 years agotake delta's into account when applying the objects matrix (dloc, drot, dsize).
Campbell Barton [Fri, 12 Nov 2010 11:16:04 +0000 (11:16 +0000)]
take delta's into account when applying the objects matrix (dloc, drot, dsize).
Now object_apply_mat4() can be used as the reverse of object_to_mat4().

Noticeable result is fly mode and 'Apply Visual Transform' dont jump when deltas are used, also means setting matrix from python works as expected.

10 years agofix for vec * matrix always returning a 3D vector.
Campbell Barton [Fri, 12 Nov 2010 09:06:50 +0000 (09:06 +0000)]
fix for vec * matrix always returning a 3D vector.

10 years agoGetting BLF to work with the Blenderplayer.
Mitchell Stokes [Fri, 12 Nov 2010 07:16:33 +0000 (07:16 +0000)]
Getting BLF to work with the Blenderplayer.

10 years agobugfix [#24665] mathutils.Matrix initialization is counter-intuitive and generates...
Campbell Barton [Fri, 12 Nov 2010 02:50:57 +0000 (02:50 +0000)]
bugfix [#24665] mathutils.Matrix initialization is counter-intuitive and generates bugs
was printing transposed, also nicer printing.

>>> from mathutils import Matrix
>>> Matrix()
Matrix((1.0, 0.0, 0.0, 0.0),
       (0.0, 1.0, 0.0, 0.0),
       (0.0, 0.0, 1.0, 0.0),
       (0.0, 0.0, 0.0, 1.0))

Matrix((1.000000, 0.000000, 0.000000, 0.000000), (0.000000, 1.000000, 0.000000, 0.000000), (0.000000, 0.000000, 1.000000, 0.000000), (0.000000, 0.000000, 0.000000, 1.000000))

10 years agobugfix [#24660] (vector * matrix) fails, (matrix * vector) succeeds
Campbell Barton [Fri, 12 Nov 2010 01:38:18 +0000 (01:38 +0000)]
bugfix [#24660] (vector * matrix) fails, (matrix * vector) succeeds

- Reverse vector * matrix multiplication order. now this matches how numpy works.
- Disallow 'matrix * vec' and 'quat * vec', now it raises an error.
- Add missing in-place multiply 'vec *= quat'

Many scripts will need to be updated for this but at least it will error rather then failing silently.

10 years agoRevert the reversal :)
Nathan Letwory [Thu, 11 Nov 2010 22:12:49 +0000 (22:12 +0000)]
Revert the reversal :)

10 years agoFix compile problems for msvc.
Nathan Letwory [Thu, 11 Nov 2010 22:09:09 +0000 (22:09 +0000)]
Fix compile problems for msvc.

10 years agoRevert r33023
Joshua Leung [Thu, 11 Nov 2010 22:05:17 +0000 (22:05 +0000)]
Revert r33023

Was causing compile troubles with MSVC:
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\io.h(322) : error C3163: '_write': attribute
s inconsistent with previous declaration
        C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\io.h(224) : see declaration of '_wri
scons: *** [C:\blenderdev\b250\buildvc\source\blender\windowmanager\intern\wm_operators.obj] Error 2

10 years agorename anim.channels_revive_fcurves --> anim.channels_fcurves_enable
Campbell Barton [Thu, 11 Nov 2010 21:49:40 +0000 (21:49 +0000)]
rename anim.channels_revive_fcurves --> anim.channels_fcurves_enable
better matches existing VIEW3D_OT_enable_manipulator & ANIM_OT_channels_setting_enable
also fixed warning.

10 years agoSystem console toggling for MinGW
Sergey Sharybin [Thu, 11 Nov 2010 20:32:28 +0000 (20:32 +0000)]
System console toggling for MinGW

Define WINVER=0x0501 for MinGW due to some stuff requres this winver, but
MinGW's default is 0x0400 (thanks AlexKu for point)

Better to replace all #include <windows.h> with #include "BLI_winstuff.h" to
avoid possibility of different functions prototypes in different modules.

10 years agoFix for definitions checking. Now it should work with MinGW.
Sergey Sharybin [Thu, 11 Nov 2010 19:28:10 +0000 (19:28 +0000)]
Fix for definitions checking. Now it should work with MinGW.

10 years agoAlso !defined(FREE_WINDOWS) on appending operator.
Nathan Letwory [Thu, 11 Nov 2010 19:04:57 +0000 (19:04 +0000)]
Also !defined(FREE_WINDOWS) on appending operator.

10 years agoSVN maintenance.
Guillermo S. Romero [Thu, 11 Nov 2010 19:00:52 +0000 (19:00 +0000)]
SVN maintenance.

10 years ago== filebrowser ==
Andrea Weikert [Thu, 11 Nov 2010 18:53:10 +0000 (18:53 +0000)]
== filebrowser ==
When loading .blend file (F1) open the filebrowser with the most recently used .blend file. Another lost feature from 2.49 back ;)

10 years agowrong language :°
Nathan Letwory [Thu, 11 Nov 2010 18:24:03 +0000 (18:24 +0000)]
wrong language :°

10 years agoFor now have console toggling only when compiled with MSVC.
Nathan Letwory [Thu, 11 Nov 2010 18:21:57 +0000 (18:21 +0000)]
For now have console toggling only when compiled with MSVC.
Need to find out how to enable for MingW too.

10 years agoSmoke now uses the start and end of cached data properly when outside the cached...
Janne Karhu [Thu, 11 Nov 2010 17:59:52 +0000 (17:59 +0000)]
Smoke now uses the start and end of cached data properly when outside the cached frame range.
* Patch by MiikaH.

10 years agoBug fix: memoryleak when using smoke heat/velocity data as texture
Janne Karhu [Thu, 11 Nov 2010 17:03:09 +0000 (17:03 +0000)]
Bug fix: memoryleak when using smoke heat/velocity data as texture
* In addition to fixing the memleak it's much better to always copy the voxeldata to the texture. Smoke data can change at any time due to some changes, so we can't depend on that data.
* Thanks to MiikaH for finding this!

10 years agoBugfix #20027
Ton Roosendaal [Thu, 11 Nov 2010 16:50:04 +0000 (16:50 +0000)]
Bugfix #20027

Texture Nodes didn't work for normal output anymore anymore.
It was caused by new handling of bump code using derivatives,
but that's not how texture nodes work now. In case a texture
has nodes, it uses the old (2.4) method.

10 years agoBugfix #19534
Ton Roosendaal [Thu, 11 Nov 2010 15:33:28 +0000 (15:33 +0000)]
Bugfix #19534

Crash in Array Modifier. The merging-vertices option
(mysteriously named "First Last") caused invalid indices in
faces to exist. This commit solves the crash, but not the
cause. For that Ben Batt's assistance is needed.

10 years agoApply patch [#24579] Fix for Win; Show/hide console
Nathan Letwory [Thu, 11 Nov 2010 13:44:51 +0000 (13:44 +0000)]
Apply patch [#24579] Fix for Win; Show/hide console
Submitted by Alexander Kuznetsov

10 years agomove report/operator view out of the 'Console' into the 'Info' space (file menu).
Campbell Barton [Thu, 11 Nov 2010 13:36:57 +0000 (13:36 +0000)]
move report/operator view out of the 'Console' into the 'Info' space (file menu).

Ton will work on moving the File menu out of the Info space before release.

- reply Operator isn't working anymore.
- UI for reports is commented out so its not mixed with the file menu.

10 years agoAnimation Editors: Experimental indicators + "fixup" operator for "Disabled FCurves"
Joshua Leung [Thu, 11 Nov 2010 11:56:50 +0000 (11:56 +0000)]
Animation Editors: Experimental indicators + "fixup" operator for "Disabled FCurves"

F-Curves tagged as "disabled" now have their channels drawn with a red line underlining their names.

"Disabled" F-Curves are skipped for evaluation, and typically result (for example) from assigning an action from one armature to another, but the new armature does not have some of the bones the action's F-Curves need in order for the datapaths (referring to the property the F-Curves affect) to be resolved. This is to prevent heaps of invalid channels slowing down animation playback.

I've also added a new operator, found by:
Channels -> Revive Disabled F-Curves
in the Graph Editor and DopeSheet/Action Editors, which will clear all the disabled tags for all the F-Curves in the animation editor at the time (based on the filtering criteria).

Use this operator to clear the disabled tags, allowing such channels to be able to be evaluated again (perhaps after adding the offending bones for example, or when using the action on the original armature again).

10 years agoBugfix #24659
Ton Roosendaal [Thu, 11 Nov 2010 11:53:30 +0000 (11:53 +0000)]
Bugfix #24659

Material buttons: Wardiso slope button was not of type 'factor' (slider),
making it very hard to use.

10 years agouse BLI_snprintf, fixed building on msvc.
Campbell Barton [Thu, 11 Nov 2010 11:46:45 +0000 (11:46 +0000)]
use BLI_snprintf, fixed building on msvc.

10 years agoMakefile fix: new compile flag moved to correct Makefile
Ton Roosendaal [Thu, 11 Nov 2010 11:06:15 +0000 (11:06 +0000)]
Makefile fix: new compile flag moved to correct Makefile

10 years agofix mistake in makefile
Campbell Barton [Thu, 11 Nov 2010 11:01:15 +0000 (11:01 +0000)]
fix mistake in makefile

10 years agoBugfix #24621: NLA strips move insensitively across tracks
Joshua Leung [Thu, 11 Nov 2010 10:27:24 +0000 (10:27 +0000)]
Bugfix #24621: NLA strips move insensitively across tracks

This was a 2-part bug:
1) "Track index" (i.e. "index of NLA track within NLA Stack") was calculated incorrectly when the transform data is created. A typo meant that this was actually "index of strip within original track"

2) Strips were flying around madly vertically (especially for downward movements, and with extreme difficulty for upwards) as the track index was being updated incorrectly. I suspect at the time I was misreading it as trackIndex = ... vs trackIndex += ..., though it obviously looked wrong looking at it now!

10 years agoNLA Transform Bugfix:
Joshua Leung [Thu, 11 Nov 2010 10:07:33 +0000 (10:07 +0000)]
NLA Transform Bugfix:

Transforming strips into locked tracks meant that they were not unlocked properly (i.e. they stayed as temporary "meta" strips). This is now taken into account as part of the step which checks if there's any space for them in those tracks.

10 years agoGet rid of G.rendering in curve_to_displist
Sergey Sharybin [Thu, 11 Nov 2010 10:01:10 +0000 (10:01 +0000)]
Get rid of G.rendering in curve_to_displist

10 years agoFix #24643: Nurbs Surface Preview resolution overrides render resolution
Sergey Sharybin [Thu, 11 Nov 2010 09:56:39 +0000 (09:56 +0000)]
Fix #24643: Nurbs Surface Preview resolution overrides render resolution

NURBS surfaces always used resol{u,v} from spline and never used curve's render resolutions.
Now, if curve's render resolution is non-zero then it'll override resolution for all
splines when rendering (in needed direction only, ofcource).

10 years agofix for building, also use const char in more places.
Campbell Barton [Thu, 11 Nov 2010 07:51:12 +0000 (07:51 +0000)]
fix for building, also use const char in more places.

10 years agoBLF_draw functions take an extra length argument, so the console drawing doenst need...
Campbell Barton [Thu, 11 Nov 2010 06:35:45 +0000 (06:35 +0000)]
BLF_draw functions take an extra length argument, so the console drawing doenst need to swap in NULL chars to draw word wrapping.

10 years agoReorder library linking.
Guillermo S. Romero [Thu, 11 Nov 2010 06:22:55 +0000 (06:22 +0000)]
Reorder library linking.

10 years agoSVN maintenance.
Guillermo S. Romero [Thu, 11 Nov 2010 06:03:41 +0000 (06:03 +0000)]
SVN maintenance.

10 years agomake console wrapped text drawing into its own function in preparation to move report...
Campbell Barton [Thu, 11 Nov 2010 05:45:55 +0000 (05:45 +0000)]
make console wrapped text drawing into its own function in preparation to move report view out of the console space type. (no functional changes)
also remove incorrect messages about the original copyright in the GPL headers.

10 years agoPreview Range operators were broken in Graph Editor
Joshua Leung [Thu, 11 Nov 2010 05:11:37 +0000 (05:11 +0000)]
Preview Range operators were broken in Graph Editor