blender.git
9 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.

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

9 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

9 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.

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

9 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].

9 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.

9 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.

9 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.

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

9 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)

9 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: vec.xxx = [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.

9 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
- bpy.app moved into PyStructSequence (used by sys.float_info)
- added buildinfo into bpy.app.build_*
- 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.

9 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)

9 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...

9 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.

9 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.

9 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.

9 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.

http://bugs.freedesktop.org/show_bug.cgi?id=23859

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

9 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.

9 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

9 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.

9 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.

9 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.

9 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.

9 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.

9 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

9 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)

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

9 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

9 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.

9 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

9 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]

9 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.

9 years agoBugfixes:
Joshua Leung [Sat, 30 Jan 2010 21:11:46 +0000 (21:11 +0000)]
Bugfixes:
* 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.

9 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.

9 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

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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

9 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))

9 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.

9 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

9 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.

9 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.

9 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

9 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.

9 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

9 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.

9 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

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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
moment.

9 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.

9 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.

9 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 :)

9 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.

9 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.

9 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.

9 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

9 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.

9 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.

9 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

9 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

9 years agoMake expanding kmi possible even when they are not user defined (makes it possible...
Martin Poirier [Fri, 29 Jan 2010 19:38:56 +0000 (19:38 +0000)]
Make expanding kmi possible even when they are not user defined (makes it possible to see full keymap information even for unmodified configurations)

9 years agoedits to 26400
Campbell Barton [Fri, 29 Jan 2010 17:01:53 +0000 (17:01 +0000)]
edits to 26400
- use the endframe operator property
- dont use the startstill setting, gives odd results (start frame isnt the startframe)

9 years agoFix #20549: selecting a texture node in a material node tree would
Brecht Van Lommel [Fri, 29 Jan 2010 16:32:06 +0000 (16:32 +0000)]
Fix #20549: selecting a texture node in a material node tree would
keep that texture locked as the current visible texture in the
texture buttons.

9 years agoTwo fixes, errors caused by drag n drop commit:
Ton Roosendaal [Fri, 29 Jan 2010 16:25:31 +0000 (16:25 +0000)]
Two fixes, errors caused by drag n drop commit:

- Icons for brushes disabled List Box to work (paint buttons)
- Mouse-release in secondary Blender windows didn't get registered
  in window where mouse-press initiated.

And fixed annoyance: adding image strip makes it 25 frames long, so
you can drag and extend it easily.

9 years agominor corrections to scripts
Campbell Barton [Fri, 29 Jan 2010 15:20:25 +0000 (15:20 +0000)]
minor corrections to scripts

9 years agobugfix [#19681] adjusting the settings of the 'add torus' tool in edit mode
Campbell Barton [Fri, 29 Jan 2010 15:19:19 +0000 (15:19 +0000)]
bugfix [#19681] adjusting the settings of the 'add torus' tool in edit mode

9 years agoFix the underlying problem from the last commit, which was worked
Brecht Van Lommel [Fri, 29 Jan 2010 14:49:21 +0000 (14:49 +0000)]
Fix the underlying problem from the last commit, which was worked
around incorrectly in r24435 before that. freeptr in BPy_StructRNA
was uninitialized when creating bpy.context.

9 years agoBugfix
Ton Roosendaal [Fri, 29 Jan 2010 14:13:40 +0000 (14:13 +0000)]
Bugfix

OSX 10.5 PPC kept crashing on exit. After blaming bad compiles, bad python libs
and all other reasons (almost was switching to linux!) brecht found the bad line
in python free code. There was code freeing stuff whilst it wasnt allowed to.

Mac PPC gets hug!

9 years agoFix #20327: uv smart project options can't be tweaked.
Brecht Van Lommel [Fri, 29 Jan 2010 13:06:50 +0000 (13:06 +0000)]
Fix #20327: uv smart project options can't be tweaked.

Python operators calling C operators would get too many undo pushes,
causing redo of the python operator not to work. Now the depth of
operator callbacks is counted to detected nested calls, and in that
case skip the undo/register here, and only do a single undo/register
for the mother operator.

9 years agoFix for lack of basic error checking in writing compressed .blend files
Brecht Van Lommel [Fri, 29 Jan 2010 11:26:17 +0000 (11:26 +0000)]
Fix for lack of basic error checking in writing compressed .blend files
(which is enabled by default). If there was a problem reading or writing
in the compression process, the original .blend file could get lost. Now
errors are checked, and writing is done as follows:

write .blend@ -> compress .blend@ to .blend@.gz ->
rename .blend@.gz to .blend -> remove .blend@

We've had blender crash here, lose the original .blend and leave an
empty .blend@. It is not clear to me where this would happen in practice
if there is enough disk space and permissions are correct, so the actual
crash is likely not fixed by this commit.

9 years agosame fix from 2.4x r26392.
Campbell Barton [Fri, 29 Jan 2010 09:56:32 +0000 (09:56 +0000)]
same fix from 2.4x r26392.

9 years agoInserting Keyframes Bugfix:
Joshua Leung [Fri, 29 Jan 2010 09:32:13 +0000 (09:32 +0000)]
Inserting Keyframes Bugfix:

When the API function is passed -1 for the index, non-array properties now get keyframed properly too. This fixes problems with the keyframe_insert() method on structs in the Py-API not working.

9 years agoFix [#20874] zoom to mouse only in 3d view
Matt Ebb [Fri, 29 Jan 2010 08:13:31 +0000 (08:13 +0000)]
Fix [#20874] zoom to mouse only in 3d view

Zoom to mouse was working in 2D Views for modal zoom (ctrl MMB) but not for mouse wheel.

9 years agoFix [#19579] View not behaving proper;y when pressing camera view toggle while view...
Matt Ebb [Fri, 29 Jan 2010 06:43:13 +0000 (06:43 +0000)]
Fix [#19579] View not behaving proper;y when pressing camera view toggle while view is moving

9 years ago[#20875] Rendering resolution in curve properties panel is not default 0 and cannot...
Matt Ebb [Fri, 29 Jan 2010 05:48:47 +0000 (05:48 +0000)]
[#20875] Rendering resolution in curve properties panel is not default 0 and cannot be set to 0.

Previously forgot about the magic: 0 res = display res behaviour.

9 years agoFix [#20297] Preview "Both" hides part of texture
Matt Ebb [Fri, 29 Jan 2010 05:14:10 +0000 (05:14 +0000)]
Fix [#20297] Preview "Both" hides part of texture

9 years agoSpeed up keymap editor a bit (less context changes)
Martin Poirier [Fri, 29 Jan 2010 02:01:02 +0000 (02:01 +0000)]
Speed up keymap editor a bit (less context changes)

9 years agoFix [#20447] Minor infobar bugs
Matt Ebb [Fri, 29 Jan 2010 01:57:15 +0000 (01:57 +0000)]
Fix [#20447] Minor infobar bugs

Limited headers to normal header height until multi-line headers are properly implemented.

9 years agoFix for weirdness in texture map to settings - we now use negative
Matt Ebb [Fri, 29 Jan 2010 01:20:57 +0000 (01:20 +0000)]
Fix for weirdness in texture map to settings - we now use negative
numbers for negative influences (as opposed to old 3-state button)
but the ui range was only set to 0,1.

Changed the defaults to -1,1 and added a shortcut - pressing minus
key while the mouse is over a number field or slider will make it negative.

9 years agoFix [#20860] File/Open Recent Should Show Blend File, Not path
Matt Ebb [Fri, 29 Jan 2010 00:47:38 +0000 (00:47 +0000)]
Fix [#20860] File/Open Recent Should Show Blend File, Not path

Max number of characters for ui elements was too low, raised this to allow
very long buttons (eg. file paths)

9 years ago* More tweaks to previous cleaning
Matt Ebb [Thu, 28 Jan 2010 23:45:12 +0000 (23:45 +0000)]
* More tweaks to previous cleaning

9 years ago* Partially converted constraint template to layout engine
Matt Ebb [Thu, 28 Jan 2010 23:41:34 +0000 (23:41 +0000)]
* Partially converted constraint template to layout engine
* Removed old code

9 years agoAdd cfg folder for keyconfigs (and possibly others later) to be imported after everyt...
Martin Poirier [Thu, 28 Jan 2010 21:52:07 +0000 (21:52 +0000)]
Add cfg folder for keyconfigs (and possibly others later) to be imported after everything else.

Also remove .pyc file when removing keyconfigs.