blender-staging.git
9 years agoChange /WX away for now, some odd thing going on between cloned environments. Need...
Nathan Letwory [Tue, 26 Oct 2010 23:32:59 +0000 (23:32 +0000)]
Change /WX away for now, some odd thing going on between cloned environments. Need to check after release.

9 years agobugfix #24334] Filename looses all parts after a dot when saving
Campbell Barton [Tue, 26 Oct 2010 23:28:10 +0000 (23:28 +0000)]
bugfix #24334] Filename looses all parts after a dot when saving
replacing the extension could remove the frame number added to a path when writing images, so just add the extension rather then replacing even though it gives odd names at times. eg: foo.png0001.tga

9 years agoDon't reset view clipping to 0.1 on entering local view, if you're working on
Matt Ebb [Tue, 26 Oct 2010 22:49:49 +0000 (22:49 +0000)]
Don't reset view clipping to 0.1 on entering local view, if you're working on
something close up with < 0.1 clipping, then toggle into local view it gets very
annoying.

9 years agoSome improvements to the uninstaller part:
Nathan Letwory [Tue, 26 Oct 2010 22:48:26 +0000 (22:48 +0000)]
Some improvements to the uninstaller part:
* don't just recursively delete $BLENDERHOME
* seperately ask confirmation for recursive deleting contents of:
  - $BLENDERHOME\$SHORTVERSION\plugins
  - $BLENDERHOME\$SHORTVERSION\scripts
  - $BLENDERHOME\$SHORTVERSION\config
* Have clear warnings about files going to be deleted

9 years agoMake sure plugins/ goes under shortversion/ dir
Nathan Letwory [Tue, 26 Oct 2010 22:13:37 +0000 (22:13 +0000)]
Make sure plugins/ goes under shortversion/ dir

9 years agoRevert 32710 for now, otherwise can't test release building with scons.
Nathan Letwory [Tue, 26 Oct 2010 21:16:11 +0000 (21:16 +0000)]
Revert 32710 for now, otherwise can't test release building with scons.

9 years agokeep the view centered with camera shift, camera view grease pencil intentionally...
Campbell Barton [Tue, 26 Oct 2010 20:51:11 +0000 (20:51 +0000)]
keep the view centered with camera shift, camera view grease pencil intentionally ignores shift.

9 years agodont use const for matrix arg, since it needs to be cast in most cases.
Campbell Barton [Tue, 26 Oct 2010 20:41:16 +0000 (20:41 +0000)]
dont use const for matrix arg, since it needs to be cast in most cases.

9 years agopartial bugfix [#24002] Constraint "Limit rotation" doesn't work properly
Campbell Barton [Tue, 26 Oct 2010 16:55:38 +0000 (16:55 +0000)]
partial bugfix [#24002] Constraint "Limit rotation" doesn't work properly
this fixes the obvious problems but there are still some rotation jumping when clamping in some cases.

9 years agomove matrix decomposition out of object.c into BLI_math_matrix function: mat4_to_loc_...
Campbell Barton [Tue, 26 Oct 2010 12:48:07 +0000 (12:48 +0000)]
move matrix decomposition out of object.c into BLI_math_matrix function: mat4_to_loc_rot_size(), use this now for pchan_apply_mat4() to support negative scale, visual keying now uses compatible eulers.
also added access to this in python's mathutils.Matrix()
 loc, quat, scale = matrix.decompose()

9 years agoRemoved old rigify code, as it is starting to interfere with the newer Rigify addon.
Nathan Vegdahl [Tue, 26 Oct 2010 05:07:09 +0000 (05:07 +0000)]
Removed old rigify code, as it is starting to interfere with the newer Rigify addon.
The newer addon currently resides here: bzr://bzr.cessen.com/rigify
But will eventually be included in svn.

9 years agoblenderplayer building again in CMake+MSVC
Dalai Felinto [Tue, 26 Oct 2010 01:55:06 +0000 (01:55 +0000)]
blenderplayer building again in CMake+MSVC
(I basically commented out functions already defined in other places)

9 years agomove geometry python module into mathutils.geometry, since it provides utility functi...
Campbell Barton [Mon, 25 Oct 2010 22:44:01 +0000 (22:44 +0000)]
move geometry python module into mathutils.geometry, since it provides utility functions using mathutils types.

9 years agoAdded function RNA_property_update_check() to check if an update call is needed,
Campbell Barton [Mon, 25 Oct 2010 21:57:45 +0000 (21:57 +0000)]
Added function RNA_property_update_check() to check if an update call is needed,
Simple python benchmark shows this to be about 3x faster in the case where an update isn't needed.

This also speeds up rna function argument parsing, since each arg in a function call did 2 string lookups on the context which were never needed.

9 years agocurve widget bounds were not properly clipped causing drawing artifacts in other...
Campbell Barton [Mon, 25 Oct 2010 18:12:28 +0000 (18:12 +0000)]
curve widget bounds were not properly clipped causing drawing artifacts in other views.

9 years agoFix for [#24383] Particles using "circle" as display, are disabled on opening file
Janne Karhu [Mon, 25 Oct 2010 17:20:12 +0000 (17:20 +0000)]
Fix for [#24383] Particles using "circle" as display, are disabled on opening file

9 years agobugfix [#22277] Absolute Shapekeys crash (in BGE)
Campbell Barton [Mon, 25 Oct 2010 17:08:40 +0000 (17:08 +0000)]
bugfix [#22277] Absolute Shapekeys crash (in BGE)
running a shape actuator on a softbody would crash because it assumed the deformer was a BL_MeshDeformer.
Added TODO note, since it would be nice if softbody would work with shape keys too.

9 years agobugfix [#24377] Bad frames drawn
Campbell Barton [Mon, 25 Oct 2010 13:37:49 +0000 (13:37 +0000)]
bugfix [#24377] Bad frames drawn

9 years agoFix #24255: Multires object gets modified when joining it to another multires object.
Sergey Sharybin [Mon, 25 Oct 2010 08:03:05 +0000 (08:03 +0000)]
Fix #24255: Multires object gets modified when joining it to another multires object.
Fix #22018: joining objects with different multires levels loses levesl from the higher multires object

- Synchronyze mulires subdivision level when joining objects
- Apply scale on MDISP layer when applying scale
- Re-calculate MDISP when joining scaled objects

9 years agoCompile fix after math API change from r32694
Nathan Letwory [Mon, 25 Oct 2010 07:36:14 +0000 (07:36 +0000)]
Compile fix after math API change from r32694

9 years agoAdd missing includes to remedy implicit declaration of functions.
Nathan Letwory [Mon, 25 Oct 2010 07:28:57 +0000 (07:28 +0000)]
Add missing includes to remedy implicit declaration of functions.

9 years agoSVN maintenance.
Guillermo S. Romero [Mon, 25 Oct 2010 07:19:43 +0000 (07:19 +0000)]
SVN maintenance.

9 years agobugfix [#24376] Fly mode disturbs the rotation or scale of the camera object
Campbell Barton [Mon, 25 Oct 2010 07:12:29 +0000 (07:12 +0000)]
bugfix [#24376] Fly mode disturbs the rotation or scale of the camera object

9 years agomissed adding the file when moving fly mode.
Campbell Barton [Mon, 25 Oct 2010 07:09:38 +0000 (07:09 +0000)]
missed adding the file when moving fly mode.

9 years agofirst part of bugfix [#24376] Fly mode disturbs the rotation or scale of the camera...
Campbell Barton [Mon, 25 Oct 2010 06:59:18 +0000 (06:59 +0000)]
first part of bugfix [#24376] Fly mode disturbs the rotation or scale of the camera object
object_apply_mat4 was incorrectly negating the matrix values,

This worked in most cases but even when it worked would end up with negative scales too often.
now when no negative scale is used they will all stay positive and from my tests it works in all cases now.

9 years agoClosing #24367 (Incorrect behaviour for Optimal Display option) and reopening #22634...
Nicholas Bishop [Mon, 25 Oct 2010 02:58:32 +0000 (02:58 +0000)]
Closing #24367 (Incorrect behaviour for Optimal Display option) and reopening #22634 (sculpting/multires and wireframe display mode glitches)

* Reverting my earlier changes to subsurf edge drawing; seems to be causing more bugs than the minor bug it fixed.

9 years agomove fly mode operator into its own file.
Campbell Barton [Mon, 25 Oct 2010 02:30:16 +0000 (02:30 +0000)]
move fly mode operator into its own file.

10 years ago== addons ==
Luca Bonavita [Sun, 24 Oct 2010 16:01:21 +0000 (16:01 +0000)]
== addons ==

- new (and temporary) directory addons_extern/ to store external projects addons

10 years agoRemove the unsigned, since totbits is signed too.
Nathan Letwory [Sun, 24 Oct 2010 12:54:52 +0000 (12:54 +0000)]
Remove the unsigned, since totbits is signed too.

10 years agoMake sure separation between modifier keys is communicated from GHOST upwards too...
Nathan Letwory [Sun, 24 Oct 2010 12:45:47 +0000 (12:45 +0000)]
Make sure separation between modifier keys is communicated from GHOST upwards too (BGE at least uses this).

10 years agorna rename: use_inherit_rotate -> use_inherit_rotation, noticed _rotate is not used...
Campbell Barton [Sun, 24 Oct 2010 08:06:19 +0000 (08:06 +0000)]
rna rename: use_inherit_rotate -> use_inherit_rotation, noticed _rotate is not used like this much elsewhere in rna.

10 years agoCollada : header files order dependency was making osx compile fail
Damien Plisson [Sun, 24 Oct 2010 07:55:56 +0000 (07:55 +0000)]
Collada : header files order dependency was making osx compile fail

10 years agobugfix [#24357] Font folder can be specified but is not opened
Campbell Barton [Sun, 24 Oct 2010 07:02:19 +0000 (07:02 +0000)]
bugfix [#24357] Font folder can be specified but is not opened
- open operator was incorrectly checking if the font path was set.
- rna ID editable check was also incorrect, checking the ID name rather then the filename.
- use define FO_BUILTIN_NAME rather then "<builtin>".

10 years agobugfix [#21097] Rotating multiple bones with non-local location behaves incorrectly.
Campbell Barton [Sun, 24 Oct 2010 06:16:44 +0000 (06:16 +0000)]
bugfix [#21097] Rotating multiple bones with non-local location behaves incorrectly.
- rotation and bone scaling with Durian feature 'Local Location' would fail to correctly translate the bone
because a different matrix is needed for translation and rotation.

10 years agoAdded CMake macro REMOVE_STRICT_FLAGS(), this means developers can build with -Werror...
Campbell Barton [Sun, 24 Oct 2010 03:57:07 +0000 (03:57 +0000)]
Added CMake macro REMOVE_STRICT_FLAGS(), this means developers can build with -Werror in their CMAKE_C_FLAGS_DEBUG (so all warnings give errors).
but external libs which we don't maintain & generated code will have -Werror removed.

This is GCC only, MSVC can be added easily.

10 years agoFixed bug #24364, "subsurf modifier causes wire-only meshes to disappear in object...
Nicholas Bishop [Sun, 24 Oct 2010 02:02:37 +0000 (02:02 +0000)]
Fixed bug #24364, "subsurf modifier causes wire-only meshes to disappear in object mode."

* Re-added code to draw loose edge

10 years agoFully disable AUD's FFTW3 usage.
Guillermo S. Romero [Sun, 24 Oct 2010 00:09:23 +0000 (00:09 +0000)]
Fully disable AUD's FFTW3 usage.

10 years agowarning fixes.
Campbell Barton [Sat, 23 Oct 2010 16:03:31 +0000 (16:03 +0000)]
warning fixes.

10 years agoCMake options to disable Decimate and Boolean Modifiers: WITH_MOD_BOOLEAN, WITH_MOD_D...
Campbell Barton [Sat, 23 Oct 2010 15:40:13 +0000 (15:40 +0000)]
CMake options to disable Decimate and Boolean Modifiers: WITH_MOD_BOOLEAN, WITH_MOD_DECIMATE, renamed WITH_FLUID to WITH_MOD_FLUID

10 years agoRemove msvc build files which are not needed anymore.
Campbell Barton [Sat, 23 Oct 2010 15:14:54 +0000 (15:14 +0000)]
Remove msvc build files which are not needed anymore.

10 years agofix for implicit declaration
Campbell Barton [Sat, 23 Oct 2010 12:09:24 +0000 (12:09 +0000)]
fix for implicit declaration

10 years agoFix #24363: trying to separate mesh with shape keys didn't display warning
Brecht Van Lommel [Sat, 23 Oct 2010 10:41:28 +0000 (10:41 +0000)]
Fix #24363: trying to separate mesh with shape keys didn't display warning
when it failed due to there being shape keys.

10 years agorename rna property Bone.use_hinge to use_inherit_rotate because use_hinge was invert...
Campbell Barton [Sat, 23 Oct 2010 10:06:40 +0000 (10:06 +0000)]
rename rna property Bone.use_hinge to use_inherit_rotate because use_hinge was inverted - Enabled by default but not a hinge.
this also matches 'use_inherit_scale'

10 years ago- CMake now only uses SOURCE_GROUP with MSVC lib configuration, saves recursive heade...
Campbell Barton [Sat, 23 Oct 2010 04:18:53 +0000 (04:18 +0000)]
- CMake now only uses SOURCE_GROUP with MSVC lib configuration, saves recursive header search when not using msvc.
- uv layout export wasn't setting the default filename.

10 years agouse explicit file paths for CMake rather then globing, This is recommended by cmake...
Campbell Barton [Sat, 23 Oct 2010 04:05:55 +0000 (04:05 +0000)]
use explicit file paths for CMake rather then globing, This is recommended by cmake devs.

globbing vs explicit is discussed here.
http://www.cmake.org/pipermail/cmake/2008-December/025694.html

Practical implications are:
- developers need to keep CMakeLists.txt files up to date.
- Users wont get strange linking errors if they build after a file is added, since CMake detects CMakeLists.txt is modified and automatically reconfigure.

10 years agoFix [#24337] Create vertex (and faces and edges) with "Control+LMB" doesn't works!
Nathan Letwory [Fri, 22 Oct 2010 22:58:12 +0000 (22:58 +0000)]
Fix [#24337] Create vertex (and faces and edges) with "Control+LMB" doesn't works!
Reported by Lluc Romaní Brasó

Some of my earlier changes to the modifier handling code accidently sent out new events for modifier keys when they where held down (repeat).

Also lay foundation for shift+numpad handling.

10 years agoFix for [#24361] Only first frame is working with glow in Render Animation using...
Janne Karhu [Fri, 22 Oct 2010 22:31:40 +0000 (22:31 +0000)]
Fix for [#24361] Only first frame is working with glow in Render Animation using Video Editing - Effect - Glow

10 years agoAdd release/scripts/modules/extensions_framework (formerly known as exporter_framework).
Doug Hammond [Fri, 22 Oct 2010 18:55:10 +0000 (18:55 +0000)]
Add release/scripts/modules/extensions_framework (formerly known as exporter_framework).

10 years agoInclude BLI_storage.h where zlib.h is also included. Some systems need _LARGESOURCE64...
Nathan Letwory [Fri, 22 Oct 2010 14:04:54 +0000 (14:04 +0000)]
Include BLI_storage.h where zlib.h is also included. Some systems need _LARGESOURCE64_FILE defined for zlib to not throw errors.

10 years agobpy.props: replace common error checks with macros, ugly but better then duplicates.
Campbell Barton [Fri, 22 Oct 2010 13:02:41 +0000 (13:02 +0000)]
bpy.props: replace common error checks with macros, ugly but better then duplicates.

10 years agochange to Nathan's fix which also works with empty material slots.
Campbell Barton [Fri, 22 Oct 2010 12:35:31 +0000 (12:35 +0000)]
change to Nathan's fix which also works with empty material slots.

10 years agoExport UV Layout to PNG would fail if original mesh didn't have materials assigned.
Nathan Letwory [Fri, 22 Oct 2010 11:51:10 +0000 (11:51 +0000)]
Export UV Layout to PNG would fail if original mesh didn't have materials assigned.
Reported in #blender.fi by Mats Holmberg

10 years agoBugfix #20708: segmented bones don't work well with spline IK
Joshua Leung [Fri, 22 Oct 2010 11:38:10 +0000 (11:38 +0000)]
Bugfix #20708: segmented bones don't work well with spline IK

There was a slight discreptancy between the tail values calculated on the spline before the head was displaced for the "chain offset" option and after this operation. However, only the original version got set.

This small difference resulted in B-Bones thinking that the endpoints of the bones were in places that they were not in, hence causing the curly patterns observed in the report.

10 years agoindex for openmp loop needs to be signed int.
Nathan Letwory [Fri, 22 Oct 2010 10:18:58 +0000 (10:18 +0000)]
index for openmp loop needs to be signed int.

10 years agoAdd some missing const's
Nathan Letwory [Fri, 22 Oct 2010 10:17:55 +0000 (10:17 +0000)]
Add some missing const's

10 years ago[#21331] Pose snap not working in some cases
Campbell Barton [Fri, 22 Oct 2010 06:25:14 +0000 (06:25 +0000)]
[#21331] Pose snap not working in some cases
The bone option 'Local Location' (flag BONE_NO_LOCAL_LOCATION) makes the location apply differently so snap to cursor failed for pose bones.

10 years agofix for BGE define in recent math changes.
Campbell Barton [Fri, 22 Oct 2010 06:00:12 +0000 (06:00 +0000)]
fix for BGE define in recent math changes.

10 years agoFix for snapping pose bones with axis-angle rotation.
Campbell Barton [Fri, 22 Oct 2010 03:56:50 +0000 (03:56 +0000)]
Fix for snapping pose bones with axis-angle rotation.
- armature_mat_pose_to_bone() was missing axis-angle check.
- added loc_axisangle_size_to_mat4() for completeness.
- use 'const' prefix where possible in math rotation functions.

10 years agoeulO_to_quat wasn't functional for XZY, YXZ, ZYX rotation orders.
Campbell Barton [Fri, 22 Oct 2010 03:27:01 +0000 (03:27 +0000)]
eulO_to_quat wasn't functional for XZY, YXZ, ZYX rotation orders.
it also modified the input rotation value which isn't expected for these functions.

10 years agofix for warnings & detecting opensource nouveau drivers.
Campbell Barton [Fri, 22 Oct 2010 01:06:21 +0000 (01:06 +0000)]
fix for warnings & detecting opensource nouveau drivers.

10 years agobugfix/workaround for ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion...
Campbell Barton [Fri, 22 Oct 2010 00:29:56 +0000 (00:29 +0000)]
bugfix/workaround for ../../radeon/radeon_cs_gem.c:181: cs_gem_write_reloc: Assertion `boi->space_accounted' failed. [#656100]
reported on launchpad.

calling glClear(GL_COLOR_BUFFER_BIT); was crashing blender,
since this is only used to blank the window before its drawn, disable for opensource ATI drivers.

10 years agofix warnings
Campbell Barton [Thu, 21 Oct 2010 22:45:54 +0000 (22:45 +0000)]
fix warnings

10 years agolimit adjustment from AlexKu, subdiv smooth soft limit of 1.
Campbell Barton [Thu, 21 Oct 2010 22:30:34 +0000 (22:30 +0000)]
limit adjustment from AlexKu, subdiv smooth soft limit of 1.

10 years agoWrong check for platform accidently put /WX to non-msvc toolchains too.
Nathan Letwory [Thu, 21 Oct 2010 18:13:43 +0000 (18:13 +0000)]
Wrong check for platform accidently put /WX to non-msvc toolchains too.

10 years agoTemporary fix for sequencer bugs #22925, #21429, #21783, #24165
Janne Karhu [Thu, 21 Oct 2010 17:00:38 +0000 (17:00 +0000)]
Temporary fix for sequencer bugs #22925, #21429, #21783, #24165
* This fix is really only a bandage, as the underlying issue is that sequencer preview render doesn't yet use the job system.
* The sequencer preview can start a full render of the scene, and this can collide with other preview/actual renders in many cases.
* Drawing the sequencer preview is now disabled when an other render is in progress, but the sequence preview rendering could have already been started before the other render, so this doesn't really fix anything.
* For now only OpenGL rendering can be used for the sequencer preview reliably until it's reimplemented using the job system.
* Using the job system in the future can handle the clashes between different renders properly and will give users a nice progress bar to indicate something is happening while the preview is recalculated.

10 years agobugfix [#24331] EdgeSlide not as flawless as 2.49's
Campbell Barton [Thu, 21 Oct 2010 13:33:51 +0000 (13:33 +0000)]
bugfix [#24331] EdgeSlide not as flawless as 2.49's
ensure minimum mouse distance for sliding edge verts else it becomes unusable.

10 years agobugfix [#24342] Wrong Bubble description when creation add-on without python comment...
Campbell Barton [Thu, 21 Oct 2010 11:20:44 +0000 (11:20 +0000)]
bugfix [#24342] Wrong Bubble description when creation add-on without python comment on class

10 years agoFix [#24348] Release confirm confusing
Nathan Letwory [Thu, 21 Oct 2010 11:19:15 +0000 (11:19 +0000)]
Fix [#24348] Release confirm confusing
Reported by Dennis Dillert

A bit clearer wording.

10 years agoDon't use CS_CLASSDC after all. Makes drawing multiple windows funky.
Nathan Letwory [Thu, 21 Oct 2010 11:15:57 +0000 (11:15 +0000)]
Don't use CS_CLASSDC after all. Makes drawing multiple windows funky.

10 years agoChanges to "evaluation time" for Curves:
Joshua Leung [Thu, 21 Oct 2010 10:28:06 +0000 (10:28 +0000)]
Changes to "evaluation time" for Curves:

After discussions with Campbell regarding #24336 and #24309, we've decided to make this property for curves to only get set when an F-Curve explicitly animates it.

As a consequence...
- ALL OLD FILES using follow-path constraints that depended on this changed behaviour will currently need manual patching to add an appropriate F-Curve
- Ctrl-P (Parenting to Curves -> Follow Path option) will now automatically create such F-Curves mimicking the old behaviour so that creating camera-following-path setups still works smoothly.
- Directly adding a Follow Path constraint bypasses this, so you'll need to manually add such F-Curves if you need them.

The main problem with the old approach was that there were many cases in which curve data could get added but the ctime would be incorrect until a frame change (i.e. on render) flushed this.

10 years agotweaks to external libs to get rid of warnings.
Campbell Barton [Thu, 21 Oct 2010 09:19:52 +0000 (09:19 +0000)]
tweaks to external libs to get rid of warnings.

10 years agobugfix [#24347] Fly mode: Immediately after pressing Shift+F, keys W and S work,...
Campbell Barton [Thu, 21 Oct 2010 09:02:21 +0000 (09:02 +0000)]
bugfix [#24347] Fly mode: Immediately after pressing Shift+F, keys W and S work, keys A, D, R and F do not

10 years ago/WX enabled for MSVC in CMake too.
Nathan Letwory [Thu, 21 Oct 2010 08:32:53 +0000 (08:32 +0000)]
/WX enabled for MSVC in CMake too.

Warning fixes.

10 years agoSame warning suppression as with SCons
Nathan Letwory [Thu, 21 Oct 2010 07:48:51 +0000 (07:48 +0000)]
Same warning suppression as with SCons

10 years agoEnable /WX in blenkernel
Nathan Letwory [Thu, 21 Oct 2010 07:39:18 +0000 (07:39 +0000)]
Enable /WX in blenkernel
Silence warnings

10 years agofix [#24339] Auto Depth, makes viewport lag.
Campbell Barton [Thu, 21 Oct 2010 07:38:09 +0000 (07:38 +0000)]
fix [#24339] Auto Depth, makes viewport lag.

The problem is the opensource nvidia nouveau drivers are slow running glReadPixels(), was hanging on memcpy().
However for autodepth its not needed to update the entire 3D view depths, so added view3d_update_depths_rect() to get the depths for a smaller area.

10 years agoInclude BLI_math.h instead of math.h.
Nathan Letwory [Thu, 21 Oct 2010 07:29:15 +0000 (07:29 +0000)]
Include BLI_math.h instead of math.h.
Silence a warning.

10 years agoSilence warning about macro redefinition
Nathan Letwory [Thu, 21 Oct 2010 07:21:34 +0000 (07:21 +0000)]
Silence warning about macro redefinition

10 years agoUse one device context for our window class.
Nathan Letwory [Thu, 21 Oct 2010 07:18:38 +0000 (07:18 +0000)]
Use one device context for our window class.

10 years ago* Use HWND_DESKTOP as parent for Blender Windows.
Nathan Letwory [Thu, 21 Oct 2010 07:16:02 +0000 (07:16 +0000)]
* Use HWND_DESKTOP as parent for Blender Windows.
* Reorder freeing of OpenGL context code.

10 years agoEnable /WX on Windows.
Nathan Letwory [Thu, 21 Oct 2010 07:14:31 +0000 (07:14 +0000)]
Enable /WX on Windows.

10 years agofix for fix [#24344] crash on adding new image when composite is open and there is...
Campbell Barton [Thu, 21 Oct 2010 04:21:09 +0000 (04:21 +0000)]
fix for fix [#24344] crash on adding new image when composite is open and there is no Nodetree
also use const prefix in solidify modifier where possible.

10 years agouse custom data mask defines, no functional changes.
Campbell Barton [Thu, 21 Oct 2010 01:55:39 +0000 (01:55 +0000)]
use custom data mask defines, no functional changes.

10 years agoremove unused args for some modifiers, no functional change.
Campbell Barton [Thu, 21 Oct 2010 01:10:22 +0000 (01:10 +0000)]
remove unused args for some modifiers, no functional change.

10 years agoimproved fix for [#24267] Hook fails after Solidify
Campbell Barton [Thu, 21 Oct 2010 01:08:12 +0000 (01:08 +0000)]
improved fix for [#24267] Hook fails after Solidify
Rather then have the modifier calculate ORIGINDEX weather its needed or not (incorrect if it wasn't the first modifier on the stack),
create ORIGINDEX layer initially if any of the modifiers use it.
This way hook also works after Mirror and Screw modifiers which have the ORIGINDEX layer copied implicitly with DM_copy_vert_data().

This wasn't possible to check for before because this flag was always enabled so it would be passed to DM_set_only_copy().
Now just add the flag whenever calling DM_set_only_copy().

10 years agoPartial fix for bug #24341, "Problems running blender headless"
Nicholas Bishop [Wed, 20 Oct 2010 23:13:12 +0000 (23:13 +0000)]
Partial fix for bug #24341, "Problems running blender headless"

* Fixed the random file popping up.
* Don't write to the history file in background mode, because ghost won't give us the right directory in that case

10 years agofix for fix [#24336] evaluation time - curve has no effect
Campbell Barton [Wed, 20 Oct 2010 13:51:37 +0000 (13:51 +0000)]
fix for fix [#24336] evaluation time - curve has no effect
committed r32598 to fix [#24309] Reloading file with incorrect path location.

Setting the curves ctime when updating the object data overrode the animated value.
For now just set the ctime on newly added curves with will work as the user expects in most cases.
This is weak design IMHO because the ctime value can be set to anything but is reset on changing frames even if its not keyed.

With curves created via python or linked in this can still result in a bad ctime value.

10 years agoQuiet compiler warnings.
Campbell Barton [Wed, 20 Oct 2010 12:33:00 +0000 (12:33 +0000)]
Quiet compiler warnings.

10 years agofix for -Wunused-value
Campbell Barton [Wed, 20 Oct 2010 12:11:09 +0000 (12:11 +0000)]
fix for -Wunused-value

10 years ago[#24267] Hook fails after Solidify
Campbell Barton [Wed, 20 Oct 2010 09:18:55 +0000 (09:18 +0000)]
[#24267] Hook fails after Solidify
Solidify modifier wasn't assigning origindex values.

- BLI_math.h array functions: range_vni(), mul_vn_fl(), mul_vn_vn_fl(), add_vn_vn(), fill_vni().
- define 'AT' as __FILE__ ":" STRINGIFY(__LINE__), useful for quick debug prints.

10 years agobugfix [#24333] Horizon Color Picker Crashes Blender if Two 3D View Windows are Open
Campbell Barton [Wed, 20 Oct 2010 04:12:01 +0000 (04:12 +0000)]
bugfix [#24333] Horizon Color Picker Crashes Blender if Two 3D View Windows are Open
also added api function ED_area_tag_redraw_regiontype(), so an area can redraw all regions by type.
In this case there is a view3d area listener that needs to draw all WINDOW regions.

10 years agostubs.c update for revision 32607, which introduced the BLC ED_space_image_paint_upda...
Mitchell Stokes [Wed, 20 Oct 2010 02:47:53 +0000 (02:47 +0000)]
stubs.c update for revision 32607, which introduced the BLC ED_space_image_paint_update().

10 years ago== Sculpt ==
Nicholas Bishop [Wed, 20 Oct 2010 01:17:18 +0000 (01:17 +0000)]
== Sculpt ==

Fixed bug #22634, sculpting/multires and wireframe display mode glitches

* Changed ccgdm edge drawing to always use face griddata rather than edge data, since edge data is not updated during sculpting.

10 years ago== Paint ==
Nicholas Bishop [Wed, 20 Oct 2010 00:42:19 +0000 (00:42 +0000)]
== Paint ==

Fixed bug #24239, "Fkey doesn't work in image paint unless also in 3D texture paint"

* Fixed brush cursor not showing when painting in the image editor without 3d texture painting enabled
* Fixed fkey not working when not in 3d texture paint

Note:
This does not handle showing the brush cursor when reloading a file saved with image painting on but 3d texture painting off. The method used for object paint modes doesn't apply quite the same here, so I left that alone for now.

10 years agoFix [#21294] Bad object drawing and crash when rendering
Nathan Letwory [Tue, 19 Oct 2010 22:17:34 +0000 (22:17 +0000)]
Fix [#21294] Bad object drawing and crash when rendering
Reported and patched by Shane Ambler.

Took the opportunity to silence warnings in readfile.c. For Windows in SCons I enabled /WX
for blenloader. This means that all enabled warnings will throw errors from now on.

10 years agocompile fixes on windows for quicktime.
Andrea Weikert [Tue, 19 Oct 2010 18:59:15 +0000 (18:59 +0000)]
compile fixes on windows for quicktime.
* solved two "'blah' undefined, assuming extern returning int" 'warnings' that jesterKing now changed to be reported as errors (thanks! :))

10 years agoFix for [#24262] Segmentation attempting to render *NEED MOER INFO*
Janne Karhu [Tue, 19 Oct 2010 17:45:19 +0000 (17:45 +0000)]
Fix for [#24262] Segmentation attempting to render *NEED MOER INFO*

10 years agoFix for [#24293] Shadow pass is wrong
Janne Karhu [Tue, 19 Oct 2010 16:10:30 +0000 (16:10 +0000)]
Fix for [#24293] Shadow pass is wrong

* The problem is that shadow pass is derived from the diffuse pass as
  shad = shad'/diff, where shad' = shad*diff. In cases where diff is
  0 and the division can't be done shad is left as shad' (=0).
* This all works just fine until the diffuse color is 0 on just one
  channel (no red in material color for example). In this case the shadow
  pass is left as 0 too regardless of the existence of an actual shadow,
  so the end result is a colored shadow!
* The only real solution is to use the original shadow intensity to
  determine if there actually is a shadow or not. This is now stored in
  shr->shad[3] from the lamp shadow calculation.

Note: The best solution would probably be to calculate the shadow pass on
it's own and not to derive it from the diffuse pass, but I didn't dare to
start messing up the shading code totally.

10 years ago[#24325] Texture painting using selected faces mask
Campbell Barton [Tue, 19 Oct 2010 15:35:46 +0000 (15:35 +0000)]
[#24325] Texture painting using selected faces mask
draw a subtle grey over unselected faces rather then coloring selected faces which got in the way of seeing the colors while painting.

10 years agobugfix [#24324] Wrong center for scaling Bezier Curve's handles
Campbell Barton [Tue, 19 Oct 2010 14:11:46 +0000 (14:11 +0000)]
bugfix [#24324] Wrong center for scaling Bezier Curve's handles
slight change to how transform calculates the center of each bezier handle selection.
- selecting both handles but not the knot now uses the mid point between the 2, before it used the handle.
- selecting 1 handle of a curve was still setting td->center to be the knot, now use the handles location only if its selected.