11 years agoCocoa/DND : added bitmap data type handling in drag'n'drop operations
Damien Plisson [Mon, 1 Feb 2010 17:33:41 +0000 (17:33 +0000)]
Cocoa/DND : added bitmap data type handling in drag'n'drop operations

Conversion of OS type to ImBuf is done inside ghost.

11 years agoFix for problem drawing second level popup menus due to recent commit,
Brecht Van Lommel [Mon, 1 Feb 2010 16:50:23 +0000 (16:50 +0000)]
Fix for problem drawing second level popup menus due to recent commit,
should find a better way to get this matrix for the UI.

11 years agoFix #20891: opengl animation render could mess up the view.
Brecht Van Lommel [Mon, 1 Feb 2010 15:32:55 +0000 (15:32 +0000)]
Fix #20891: opengl animation render could mess up the view.

The problem was that wmPushMatrix/wmOrtho/.. and similar functions did not
work well for offscreen rendering. It would have been possible to make a
fake subwindow for this, but I decided to just remove this extra layer as
it does not seem to have much purpose and has been quite confusing when
trying to fix other bugs. The relevant matrices are already stored in
RegionView3D so there will be no increase in calls to glGetFloat, which may
have been a performance reason to use this system in the past.

11 years agoBGE: fix for [#20684] Game Render blanks screen on Anaglyph Stereo view
Dalai Felinto [Mon, 1 Feb 2010 15:13:05 +0000 (15:13 +0000)]
BGE: fix for [#20684] Game Render blanks screen on Anaglyph Stereo view

The problem was: the Blender default camera has DOF distance as 0.0. Since we are using this as Focal Length for the stereo calculation we had terrible stereo by default.

Fix: whenever DOF == 0.0 we use focal length as eye separation * 30.0 (known to be a reasonable value)

11 years agoshape key transfer fix.
Campbell Barton [Mon, 1 Feb 2010 15:09:35 +0000 (15:09 +0000)]
shape key transfer fix.
workaround for the vert locations not being relyable, use the base shape key rather then the verts to calculate the offsets.

11 years agoopengl render wasnt using the right stamp flag
Campbell Barton [Mon, 1 Feb 2010 14:42:23 +0000 (14:42 +0000)]
opengl render wasnt using the right stamp flag

11 years agoremove workaround thats not needed anymore and could cause a python error when linkin...
Campbell Barton [Mon, 1 Feb 2010 14:25:38 +0000 (14:25 +0000)]
remove workaround thats not needed anymore and could cause a python error when linking a mesh with keys to an object.

11 years agoadded extrude enum function, cant be used yet because macros have no way to expose...
Campbell Barton [Mon, 1 Feb 2010 13:48:13 +0000 (13:48 +0000)]
added extrude enum function, cant be used yet because macros have no way to expose in a way that lets transform run after.

11 years agoBugfix #19970: auto-clamped / auto working strangly in f-curve editor
Joshua Leung [Mon, 1 Feb 2010 11:45:24 +0000 (11:45 +0000)]
Bugfix #19970: auto-clamped / auto working strangly in f-curve editor

Fixed the operators for DopeSheet/Graph Editors responsible for setting the "auto-clamped". This option is actually per F-Curve instead of per handle, and the code here should function like it did in 2.4x

However, despite this, it still appears to work oddly IMO. Any comments Bassam or animators familiar with the intentions of this?

11 years agoFix #20420: grab brush + subsurf modifier crash. Previously the PBVH nodes
Brecht Van Lommel [Mon, 1 Feb 2010 11:36:22 +0000 (11:36 +0000)]
Fix #20420: grab brush + subsurf modifier crash. Previously the PBVH nodes
were cached once at the start, but these can change when modifiers are
executed, now it simply doesn't cache them anymore, that was only really
a performance bottleneck when it was caching individual vertices.

11 years agoCocoa : fix mouse cursor hang when RMB-dragging in a not frontmost window
Damien Plisson [Mon, 1 Feb 2010 11:20:01 +0000 (11:20 +0000)]
Cocoa : fix mouse cursor hang when RMB-dragging in a not frontmost window

With continuous grab on, in 2+ window setup, when RMB-dragging an object in a 3D view of a not active (not frontmost) window, mouse cursor was stuck, with no escape.
Cursor grab must be done by the window that is key (able to receive mouse move events).

11 years agoFix #20502: add constraint (with targets) menu has no last used memory.
Brecht Van Lommel [Mon, 1 Feb 2010 11:13:55 +0000 (11:13 +0000)]
Fix #20502: add constraint (with targets) menu has no last used memory.

The last click button memory can now deal with menus with varying amounts
of menu entries and multi column layouts.

11 years agobpy.props.IntVectorProperty & BoolVectorProperty
Campbell Barton [Mon, 1 Feb 2010 10:51:34 +0000 (10:51 +0000)]
bpy.props.IntVectorProperty & BoolVectorProperty

11 years agoFix automatic draw method detection not clearing things properly
Brecht Van Lommel [Mon, 1 Feb 2010 10:39:36 +0000 (10:39 +0000)]
Fix automatic draw method detection not clearing things properly
on e.g. resizing windows.

11 years agoOSX : fix OpenCollada build for 10.4 targets with scons
Damien Plisson [Mon, 1 Feb 2010 10:14:22 +0000 (10:14 +0000)]
OSX : fix OpenCollada build for 10.4 targets with scons

11 years agoGPU type detection tweaks for unix/mac software rendering.
Brecht Van Lommel [Mon, 1 Feb 2010 10:04:37 +0000 (10:04 +0000)]
GPU type detection tweaks for unix/mac software rendering.

11 years agoWM Draw Method added to do Overlap assuming swap exchange / flipping,
Brecht Van Lommel [Mon, 1 Feb 2010 10:02:53 +0000 (10:02 +0000)]
WM Draw Method added to do Overlap assuming swap exchange / flipping,
and made that the default for windows software opengl because that
seems to be working better at least on XP. Previously this could only
be specified from the command line.

11 years agostub additions for building the game engine
Tom Musgrove [Mon, 1 Feb 2010 09:33:32 +0000 (09:33 +0000)]
stub additions for building the game engine

11 years agoNLA Editor Bugfix:
Joshua Leung [Mon, 1 Feb 2010 09:26:50 +0000 (09:26 +0000)]
NLA Editor Bugfix:

Operator to add action-clips now takes names without needing the "AC" prefix. The previous way was non-obvious for scripting usage, but did not cause too much trouble to replace.

11 years agoCocoa : implement opening .blend file by double-clicking on it in OSX Finder
Damien Plisson [Mon, 1 Feb 2010 09:11:18 +0000 (09:11 +0000)]
Cocoa : implement opening .blend file by double-clicking on it in OSX Finder

When the user double-clicks on a document file in the Finder, OSX doesn't simply give the filename as a command-line argument when calling Blender, as it is done in other OSes.
Instead, it launches the app if needed, and then sends an "openFile" event.

The user can also open a document file by dropping its icon on the app dock icon. But as this is not real Drag'n'drop, I've renamed the Ghost event to a less confusing "GHOST_kEventOpenMainFile" name.

DND Ghost wiki page updated :

11 years agoFinished some todos for the Export KeyingSet operator:
Joshua Leung [Mon, 1 Feb 2010 04:07:43 +0000 (04:07 +0000)]
Finished some todos for the Export KeyingSet operator:
- Keyframing and other KeyingSet-level settings are now included in the exported script too
- A table of lookups for ID-block shorthands is built and included to make running the exported script more efficient and less confusing

11 years agoNew argument parsing library supporting multiple passes, case sensitive and insensiti...
Martin Poirier [Mon, 1 Feb 2010 01:43:31 +0000 (01:43 +0000)]
New argument parsing library supporting multiple passes, case sensitive and insensitive arguments, default handlers and other features that were hacked in the previous ugly switch system. Very simpler system for adding new arguments, easier to see conflicts and no more replication between BG and non BG mode arguments.

I've tested pretty much everything except GE options (-g options), but some small bugs could have sneaked in.

11 years agoFix loading python modules (like netrender)
Martin Poirier [Mon, 1 Feb 2010 01:33:40 +0000 (01:33 +0000)]
Fix loading python modules (like netrender)

11 years agoKeying Sets: Export to File
Joshua Leung [Mon, 1 Feb 2010 01:08:45 +0000 (01:08 +0000)]
Keying Sets: Export to File

This commit adds an operator which saves the active Keying Set in a form which can be used to regenerate the Keying Set again in another file using the Keying Sets API.

This could be made smarter by caching the ID-blocks used, and writing aliases for those, but that can be done later.

11 years agoSVN maintenance.
Guillermo S. Romero [Mon, 1 Feb 2010 00:04:28 +0000 (00:04 +0000)]
SVN maintenance.

11 years agoFixed a few lingering compiler warnings with the bpy_app stuff
Joshua Leung [Sun, 31 Jan 2010 23:49:04 +0000 (23:49 +0000)]
Fixed a few lingering compiler warnings with the bpy_app stuff

11 years agoWM Draw Methods now has a new option Automatic (default). This will
Brecht Van Lommel [Sun, 31 Jan 2010 23:45:51 +0000 (23:45 +0000)]
WM Draw Methods now has a new option Automatic (default). This will
set the draw method to triple buffer or overlap depending on the
configuration. Ideally I could get all cases working well with triple
buffer but it's hard in practice. At the moment there are two cases
that use overlap instead:

* opensource ATI drives on linux
* windows software renderer

Also added a utility function to check GPU device/os/driver.

11 years agough!, missed this file too
Campbell Barton [Sun, 31 Jan 2010 23:41:46 +0000 (23:41 +0000)]
ugh!, missed this file too

11 years agoAdded 'Evaluation Time' setting access to Path Animation panel.
Joshua Leung [Sun, 31 Jan 2010 23:41:38 +0000 (23:41 +0000)]
Added 'Evaluation Time' setting access to Path Animation panel.

This was previously only available from the datablocks viewer, but this is the direct replacement to the badly named 'speed' ipo-curve in the past ('speed' implies a rate that must be integrated/added to the results of past frame, rather than a factor).

Also, tweaked the RNA definition so that this shows as a slider (i.e. a factor), since the valid values for this are clamped to the [0, 1].

11 years agoFix #19888: tooltip would stay visible when starting e.g. panning the
Brecht Van Lommel [Sun, 31 Jan 2010 23:33:04 +0000 (23:33 +0000)]
Fix #19888: tooltip would stay visible when starting e.g. panning the
view, and be stuck there permantenly when leaving the region. Now the
button interaction is cancelled when starting a modal operator, not too
happy about this, but couldn't think of another way to detect this well.

11 years agoFix #20830: only rendering Z pass did not give correct Z values.
Brecht Van Lommel [Sun, 31 Jan 2010 23:27:40 +0000 (23:27 +0000)]
Fix #20830: only rendering Z pass did not give correct Z values.

11 years agoFix missing redraw in image window when changing render pass.
Brecht Van Lommel [Sun, 31 Jan 2010 23:25:57 +0000 (23:25 +0000)]
Fix missing redraw in image window when changing render pass.

11 years agomissed this file
Campbell Barton [Sun, 31 Jan 2010 23:21:33 +0000 (23:21 +0000)]
missed this file

11 years agoRenamed the FILE_OPEN option for the file browser to FILE_OPENFILE to cleanup compile...
Joshua Leung [Sun, 31 Jan 2010 23:07:32 +0000 (23:07 +0000)]
Renamed the FILE_OPEN option for the file browser to FILE_OPENFILE to cleanup compiler warnings about redefined definitions (mingw)

11 years agosetting invalid vector swizzle attributes (from blender2.4x docs for instance), could...
Campbell Barton [Sun, 31 Jan 2010 22:50:07 +0000 (22:50 +0000)]
setting invalid vector swizzle attributes (from blender2.4x docs for instance), could crash blender.
 - disallow setting swizzle's that have duplicate values: = [1,2,3]
 - raise an error if the list setting a swizzle's longer.
 - mathutils write callback was running on the wrong vector, which could crash blender.

11 years agoMathutils doc improvements + other small things
Campbell Barton [Sun, 31 Jan 2010 21:52:26 +0000 (21:52 +0000)]
Mathutils doc improvements + other small things
- moved into PyStructSequence (used by sys.float_info)
- added buildinfo into*
- bpy.ui removed (wasnt used)
- include external example files in Mathutils docs (only Mathutils and Vector are currently written)
- added support to auto document PyStructSequence's
- CMake had "'s inside all its strings.

11 years agoFix [#20901] OPENEXR: Incorrect gamma from colour management
Matt Ebb [Sun, 31 Jan 2010 20:53:04 +0000 (20:53 +0000)]
Fix [#20901] OPENEXR: Incorrect gamma from colour management

Was working correctly on float render buffers, but not 8bpc render buffers
(only generated from sequence editor)

11 years ago-setaudio argument to force an audio device.
Martin Poirier [Sun, 31 Jan 2010 18:32:19 +0000 (18:32 +0000)]
-setaudio argument to force an audio device.

This also means that only -s and -S are accepted to set start frame and scene (before, it would accept anything that started with s or S, you could have done blender -b file.blend -super 1 -Science "scene 2").

We really need better argument parsing...

11 years ago2.5: quick fix to make 10-timer menu appear again. It's a debug tool, is
Ton Roosendaal [Sun, 31 Jan 2010 18:06:50 +0000 (18:06 +0000)]
2.5: quick fix to make 10-timer menu appear again. It's a debug tool, is
allowed to show menus in end. But, report API doesn't have a type for this
yet... has been noted, and will be checked soon.

11 years agoTemporary work around for [#20768] Project Snap Broken
Martin Poirier [Sun, 31 Jan 2010 17:50:42 +0000 (17:50 +0000)]
Temporary work around for [#20768] Project Snap Broken

Don't snap to editmesh when project is on (that means you can't retopo to the same mesh). Again, that's a temporary work around.

11 years agoFix snap to grid not taking the current grid resolution into
Brecht Van Lommel [Sun, 31 Jan 2010 16:59:21 +0000 (16:59 +0000)]
Fix snap to grid not taking the current grid resolution into
account in quad split 3d view. Now WM_OP_EXEC/INVOKE_REGION_WIN
context stays in the current region if it is already a region
of type window, so the operator gets executed in the right context.

11 years agoFix #20879: crash when add textures brush in sculpt mode. Drawing
Brecht Van Lommel [Sun, 31 Jan 2010 15:06:20 +0000 (15:06 +0000)]
Fix #20879: crash when add textures brush in sculpt mode. Drawing
the texture would crash because the VBO was still bound. As I
understand it this is not necessarily against the opengl spec,
but might as well unbind it, the driver bug seems to have been
fixed but has not trickled down everywhere yet.

11 years agopep8 changes
Campbell Barton [Sun, 31 Jan 2010 14:46:28 +0000 (14:46 +0000)]
pep8 changes

11 years agopep8 changes to rigify (minor warnings still there)
Campbell Barton [Sun, 31 Jan 2010 14:33:27 +0000 (14:33 +0000)]
pep8 changes to rigify (minor warnings still there)
also found quite a few cases where variables were used that hadnt been defined.

11 years agowhite space commit, so the actual changes in the next commiy wont be so hard to find
Campbell Barton [Sun, 31 Jan 2010 14:30:21 +0000 (14:30 +0000)]
white space commit, so the actual changes in the next commiy wont be so hard to find

11 years agoFix #20696: shape keys with vertex groups showing in edit mode did
Brecht Van Lommel [Sun, 31 Jan 2010 11:15:51 +0000 (11:15 +0000)]
Fix #20696: shape keys with vertex groups showing in edit mode did
not update immediately when editing the vertex groups.

11 years agoVarious tweaks to View2D code for handling of scrollbar interactions in relation...
Joshua Leung [Sun, 31 Jan 2010 11:13:31 +0000 (11:13 +0000)]
Various tweaks to View2D code for handling of scrollbar interactions in relation to bug 19881:

* Clearly labelled the way that the scrollbar hiding works. Also see the report comments for an overview
* Added another pair of flags for another one of the cases in which scrollbars should also get ignored; when the entire contents of the view are visible, a pair of flags is now set in the view2d data (instead of for the scrollers tempdata only) for detecting this case too
* Fixed the potential for scrollbars without zoom handles shown to have those handles still considered. This still happened in the User Preferences window, but has now been disabled.


These changes still don't solve the bug though. Currently after the scrollbar operator passes through, the Outliner's activate-selection operators still fail to start.

11 years agoFix #20897: ctrl + click extrude now works again with "select with"
Brecht Van Lommel [Sun, 31 Jan 2010 11:01:13 +0000 (11:01 +0000)]
Fix #20897: ctrl + click extrude now works again with "select with"
set to left mouse, using the right mouse button, same as in 2.4x.

11 years agoFix #20896: FSAA wasn't disabled properly and still enabled for 3d view
Brecht Van Lommel [Sun, 31 Jan 2010 09:49:46 +0000 (09:49 +0000)]
Fix #20896: FSAA wasn't disabled properly and still enabled for 3d view
drawing, which apparently still slows things down even if you don't have
the window set up to do this.

11 years agoFix compile error in qtkit_export.m on mac.
Brecht Van Lommel [Sun, 31 Jan 2010 09:42:50 +0000 (09:42 +0000)]
Fix compile error in qtkit_export.m on mac.

11 years agoArmature RNA: Removed old properties for armature-only bone paths
Joshua Leung [Sun, 31 Jan 2010 05:36:57 +0000 (05:36 +0000)]
Armature RNA: Removed old properties for armature-only bone paths

11 years agobugfix [#20579] Context pinning error (pose mode)
Campbell Barton [Sat, 30 Jan 2010 23:48:49 +0000 (23:48 +0000)]
bugfix [#20579] Context pinning error (pose mode)

11 years agomissed these last commit
Campbell Barton [Sat, 30 Jan 2010 22:50:32 +0000 (22:50 +0000)]
missed these last commit

11 years agochanges to get MingW compiling and cross compiling working, patch by Sergey Sharybin
Tom Musgrove [Sat, 30 Jan 2010 22:46:25 +0000 (22:46 +0000)]
changes to get MingW compiling and cross compiling working, patch by Sergey Sharybin

11 years ago- hash characters in the path would confuse the output file name and not add numbers...
Campbell Barton [Sat, 30 Jan 2010 22:33:47 +0000 (22:33 +0000)]
- hash characters in the path would confuse the output file name and not add numbers to it (when rendering animations).
- added an option to BLI_convertstringframe and BLI_convertstringframe_range to add digits if not found.
- removed BLI_convertstringframe where its obviously not needed - such as loading movies and sounds.

11 years agorename game object obcolor to color
Campbell Barton [Sat, 30 Jan 2010 21:59:20 +0000 (21:59 +0000)]
rename game object obcolor to color

11 years agobugfix [#20878] Filtering for keymaps became useless [26389]
Campbell Barton [Sat, 30 Jan 2010 21:48:07 +0000 (21:48 +0000)]
bugfix [#20878] Filtering for keymaps became useless [26389]

11 years agoBugfix #20870: Local rotation drivers behave weird
Joshua Leung [Sat, 30 Jan 2010 21:21:36 +0000 (21:21 +0000)]
Bugfix #20870: Local rotation drivers behave weird

Use euler rotations for local rotation drivers if the object/bone uses euler rotations. Otherwise, fall back to matrix-based conversions again.

11 years agoBugfixes:
Joshua Leung [Sat, 30 Jan 2010 21:11:46 +0000 (21:11 +0000)]
* Old files imported to 2.5 with curves that got cycles FModifiers added during version patching, would not have their keyframes shown for editing.

* #20893: Can't see/show the Properties area in the NLA
I don't know why this worked on a few of my test files several months ago, and yet now fails for many files today.

11 years agoPreparation to force an audio device via command line. Will be implemented by theeth.
Joerg Mueller [Sat, 30 Jan 2010 21:04:51 +0000 (21:04 +0000)]
Preparation to force an audio device via command line. Will be implemented by theeth.

11 years agobugfix [#20740] Separate All Loose Parts
Campbell Barton [Sat, 30 Jan 2010 19:42:03 +0000 (19:42 +0000)]
bugfix [#20740] Separate All Loose Parts

11 years agocmake vars are not using _BF_ in var names.
Campbell Barton [Sat, 30 Jan 2010 19:29:24 +0000 (19:29 +0000)]
cmake vars are not using _BF_ in var names.

11 years agoOSX : update build scripts for updated openCollada libs + ray tracing optimization...
Damien Plisson [Sat, 30 Jan 2010 19:07:48 +0000 (19:07 +0000)]
OSX : update build scripts for updated openCollada libs + ray tracing optimization option in cmake

OpenCollada new version (721) lib has additional lib files to link with.

Added BF_RAY_OPTIMIZATION option in CMake (as the one in scons) for building SIMD optimized ray tracing code.

11 years ago[#20320] Quad View - Orthogonal grid changes to perspective grid
Campbell Barton [Sat, 30 Jan 2010 18:54:36 +0000 (18:54 +0000)]
[#20320] Quad View - Orthogonal grid changes to perspective grid
- respect view locking (dont change rv3d->view)
- on multiple calls to smoothview, get the original view from the previously called smoothview if it exists.

11 years agoBGE: patch [#20293] Added python sensor attribute: Status.
Benoit Bolsee [Sat, 30 Jan 2010 18:53:33 +0000 (18:53 +0000)]
BGE: patch [#20293] Added python sensor attribute: Status.

11 years agoBGE: patch #20399 Python control over adding/removing scenes.
Benoit Bolsee [Sat, 30 Jan 2010 18:23:13 +0000 (18:23 +0000)]
BGE: patch #20399 Python control over adding/removing scenes.

11 years agoMerge -c 26209,26214,26443 from COLLADA branch into trunk.
Arystanbek Dyussenov [Sat, 30 Jan 2010 18:20:56 +0000 (18:20 +0000)]
Merge -c 26209,26214,26443 from COLLADA branch into trunk.

11 years agoCOLLADA branch: updated vc9 project files and w32 scons config.
Arystanbek Dyussenov [Sat, 30 Jan 2010 18:03:18 +0000 (18:03 +0000)]
COLLADA branch: updated vc9 project files and w32 scons config.

11 years agobugfix [#20894] Blender don't import the "eye" icon value from 2.49 files in the...
Campbell Barton [Sat, 30 Jan 2010 17:49:32 +0000 (17:49 +0000)]
bugfix [#20894] Blender don't import the "eye" icon value from 2.49 files in the DopeSheet Editor

11 years ago[#20892] Locking animation curves with Tab Key don't hide the curves handles
Campbell Barton [Sat, 30 Jan 2010 17:17:23 +0000 (17:17 +0000)]
[#20892] Locking animation curves with Tab Key don't hide the curves handles
drawing handles for fcurves wasnt checking ((fcu->grp) && (fcu->grp->flag & AGRP_PROTECTED))

11 years ago[#19872] Mesh edit missing undo push for mode changing
Campbell Barton [Sat, 30 Jan 2010 16:09:56 +0000 (16:09 +0000)]
[#19872] Mesh edit missing undo push for mode changing
copy the editmesh select mode back to the scene on undo.

11 years agobugfix [#20888] Crash when following instructions on the Blender Wiki and then clicki...
Campbell Barton [Sat, 30 Jan 2010 15:44:11 +0000 (15:44 +0000)]
bugfix [#20888] Crash when following instructions on the Blender Wiki and then clicking on the outliner

11 years agoFix #19648: sculpt does not update linked duplicate multires.
Brecht Van Lommel [Sat, 30 Jan 2010 15:29:22 +0000 (15:29 +0000)]
Fix #19648: sculpt does not update linked duplicate multires.

11 years ago[#20550] Workflow Odity For Objects On Layers Not Being Viewed
Campbell Barton [Sat, 30 Jan 2010 15:23:17 +0000 (15:23 +0000)]
[#20550] Workflow Odity For Objects On Layers Not Being Viewed
always keep the first editmode objects layer enabled in cases where switching hides the editmode object.

11 years agobugfix [#20638] not loading script in user script directory when startup
Campbell Barton [Sat, 30 Jan 2010 14:48:46 +0000 (14:48 +0000)]
bugfix [#20638] not loading script in user script directory when startup

11 years agoFix #20662: normal map rendering with negative factor didn't flip
Brecht Van Lommel [Sat, 30 Jan 2010 14:41:51 +0000 (14:41 +0000)]
Fix #20662: normal map rendering with negative factor didn't flip
the direction correctly.

11 years agobugfix [#20417] <memory> shouldn't be stored in recent item list
Campbell Barton [Sat, 30 Jan 2010 14:34:37 +0000 (14:34 +0000)]
bugfix [#20417] <memory> shouldn't be stored in recent item list

11 years agoCOLLADA branch: merge from trunk -r 25745:26429.
Arystanbek Dyussenov [Sat, 30 Jan 2010 14:12:51 +0000 (14:12 +0000)]
COLLADA branch: merge from trunk -r 25745:26429.

scons+vc build crashes on Blender start when BF_COLLADA is on, don't know why this happens.

Merging from trunk to get working vc project files, then will try to debug and locate the problem.

11 years agoutility functions is_negative_m3 & is_negative_m4, added python Mathutils access...
Campbell Barton [Sat, 30 Jan 2010 13:15:39 +0000 (13:15 +0000)]
utility functions is_negative_m3 & is_negative_m4, added python Mathutils access Matrix.is_negative
renamed Mathutils attribute wrapped -> is_wrapped

11 years agoFix #20886: user defined keymap could be loaded before python scripts,
Brecht Van Lommel [Sat, 30 Jan 2010 12:01:44 +0000 (12:01 +0000)]
Fix #20886: user defined keymap could be loaded before python scripts,
printing errors when that keymap included python operators.

11 years agoFix #20790: fluid sim adding domain mesh with no faces crashes.
Brecht Van Lommel [Sat, 30 Jan 2010 11:04:36 +0000 (11:04 +0000)]
Fix #20790: fluid sim adding domain mesh with no faces crashes.

11 years agoPossible fix for #20835: background images were not duplicated correctly
Brecht Van Lommel [Sat, 30 Jan 2010 10:16:11 +0000 (10:16 +0000)]
Possible fix for #20835: background images were not duplicated correctly
when splitting 3d view, causing them to be lost on file reload.

11 years agoFix #19980: crash with opengl render active viewport.
Brecht Van Lommel [Sat, 30 Jan 2010 09:53:55 +0000 (09:53 +0000)]
Fix #19980: crash with opengl render active viewport.

11 years agoFix #20876: adjusting the settings after adding a new curve, surface,
Brecht Van Lommel [Sat, 30 Jan 2010 09:34:54 +0000 (09:34 +0000)]
Fix #20876: adjusting the settings after adding a new curve, surface,
or metaball creates duplicates, these did two undo pushes when only
one is needed.

11 years agoFix #20505: subsurf normals where not being set correct on correct from
Brecht Van Lommel [Sat, 30 Jan 2010 09:32:05 +0000 (09:32 +0000)]
Fix #20505: subsurf normals where not being set correct on correct from
subsurf derivedmesh to regular (derived)mesh, causing drawing errors on
apply and following modifiers to work incorrect.

11 years agoFix #20221: switching to weight paint in textured viewport shading
Brecht Van Lommel [Sat, 30 Jan 2010 09:27:49 +0000 (09:27 +0000)]
Fix #20221: switching to weight paint in textured viewport shading
mode leaves objects blue.

11 years agoFix #19875: drawing smoke on graphics cards that do not support
Brecht Van Lommel [Sat, 30 Jan 2010 09:24:50 +0000 (09:24 +0000)]
Fix #19875: drawing smoke on graphics cards that do not support
non-power-of-two textures lead to artifacts due to uninitialized
memory if the domain had a non-power-of-two size.

11 years agoFix #19904: selecting a new image color closes the popup.
Brecht Van Lommel [Sat, 30 Jan 2010 09:18:59 +0000 (09:18 +0000)]
Fix #19904: selecting a new image color closes the popup.

11 years agoAdded a comment in the code about a timer that is not being freed and
Brecht Van Lommel [Sat, 30 Jan 2010 09:17:32 +0000 (09:17 +0000)]
Added a comment in the code about a timer that is not being freed and
is causing the smooth view operator to run all the time after closing
the file browser, since I can't think of a good way to fix it at the

11 years agoFix #20146:
Brecht Van Lommel [Sat, 30 Jan 2010 09:14:12 +0000 (09:14 +0000)]
Fix #20146:
* .tif not loading on newer linux distributions, wasn't looking for
  libtiff version 4.
* fix dds being too verbose when testing if it can open an image file.

11 years agoSmall UI Tweak:
Thomas Dinges [Sat, 30 Jan 2010 08:45:31 +0000 (08:45 +0000)]
Small UI Tweak:
Let "Add Constraint" Button use the whole space, like the "Add Modifier" Button.

11 years agoA few minor code cleanup tweaks for recent commits in animation code, to better follo...
Joshua Leung [Sat, 30 Jan 2010 05:08:42 +0000 (05:08 +0000)]
A few minor code cleanup tweaks for recent commits in animation code, to better follow conventions elsewhere here :)

11 years agoView2D/TimeCode Drawing:
Joshua Leung [Sat, 30 Jan 2010 04:43:36 +0000 (04:43 +0000)]
View2D/TimeCode Drawing:

This commit introduces a few cleanups and tweaks to the way that timecodes (i.e. the timing indications used instead of frame numbers) get displayed.

1. Custom Spacing of TimeCodes/Gridlines
Made the minimum number of pixels between gridlines/timecode indications a user-preference, instead of being a hardcoded constant. This allows to set the spacing tighter/looser than the defaults, and is also used for the other changes.

2. Default timecode display style, (now named 'minimal') uses '+' as the delimeter for the sub-second frames. This hopefully makes it a bit clearer what those values represent, as opposed to the '!', which can sometimes look too much like a colon.

3. Added various timecode display styles as user-preference. - These include always displaying full SMPTE, to showing milliseconds instead of frams for sub-second times, and also an option to just show the times as seconds only.
- When changing the timecode style, the spacing setting is automatically modified so that the timecodes are spaced far apart enough so that they won't clash (under most circumstances). This automatic modification is only done if the spacing is too tight for the style being set.

4. Unified the code for generating timecode strings between the View2D scrollbar drawing and the current frame indicator drawing.

11 years agoFix for fix in own recent commit for modifier vertex groups,
Brecht Van Lommel [Sat, 30 Jan 2010 03:47:13 +0000 (03:47 +0000)]
Fix for fix in own recent commit for modifier vertex groups,
should have only changed one value to 0.0.

11 years agoFix #19473: Toggle Quad View options missing from UI.
Brecht Van Lommel [Sat, 30 Jan 2010 03:22:22 +0000 (03:22 +0000)]
Fix #19473: Toggle Quad View options missing from UI.

11 years ago[#20881] Minor UI bug in outliner - groups view
Campbell Barton [Sat, 30 Jan 2010 02:29:22 +0000 (02:29 +0000)]
[#20881] Minor UI bug in outliner - groups view

11 years ago[#20487] Small bug in 3d window's header in edit mode.
Campbell Barton [Sat, 30 Jan 2010 01:25:02 +0000 (01:25 +0000)]
[#20487] Small bug in 3d window's header in edit mode.
[#20713] vertex, edge and face toggling acts like shift select (in 2.49) with or without shift pressed

revert own changes from 26035
- python buttons were toggles so clicking on 1 didnt disable the others.
- for some reason the layout engine wasnt working right here and made the buttons skilly in localview.

11 years agobugfix [#20721] Reloading scripts crashes Blender (own todo)
Campbell Barton [Sat, 30 Jan 2010 01:10:16 +0000 (01:10 +0000)]
bugfix [#20721] Reloading scripts crashes Blender (own todo)
made an incorrect assumption that ot->srna and the srna for the registered operators type are the same. caused reload to crash.

11 years agoRemoving duplicate bad level call entries, patch from Richard Sanger, thanks
Tom Musgrove [Sat, 30 Jan 2010 00:47:41 +0000 (00:47 +0000)]
Removing duplicate bad level call entries, patch from Richard Sanger, thanks

11 years agodeleting objects which were driver targets would crash blender.
Campbell Barton [Fri, 29 Jan 2010 21:16:21 +0000 (21:16 +0000)]
deleting objects which were driver targets would crash blender.

added a utility function BKE_animdata_main_cb
which loops over all AnimData's of all ID's