blender.git
10 years agoWindows Compile Fix. No need for strings.h on win32.
Thomas Dinges [Tue, 19 Jan 2010 15:46:07 +0000 (15:46 +0000)]
Windows Compile Fix. No need for strings.h on win32.

10 years agoAdded extra check & prints for multires data failing to write to
Brecht Van Lommel [Tue, 19 Jan 2010 15:15:48 +0000 (15:15 +0000)]
Added extra check & prints for multires data failing to write to
external file.

10 years agoAligorith: please check. this was copied from mouse select. however BKE_nla_tweakedit...
Campbell Barton [Tue, 19 Jan 2010 15:12:14 +0000 (15:12 +0000)]
Aligorith: please check. this was copied from mouse select. however BKE_nla_tweakedit_remap(adt, rectf.xmin, NLATIME_CONVERT_UNMAP) is running which looks like it should be doing the remapping. however both functions are needed for this to work.
Committing since Lee wants border select to work in the graph editor but feel free to revert.

10 years agoremoved 3D view listener for changing the background image frame.
Campbell Barton [Tue, 19 Jan 2010 14:04:33 +0000 (14:04 +0000)]
removed 3D view listener for changing the background image frame.
do this on drawing instead since SCREEN_OT_animation_step isnt calling the notifier (assume this is to be more efficient?). this isnt slow so is ok to do on drawing.

rename BKE_image_user_calc_imanr to BKE_image_user_calc_frame

10 years agoset teh active face on entering editmode to the last selected, visible face (if...
Campbell Barton [Tue, 19 Jan 2010 12:24:28 +0000 (12:24 +0000)]
set teh active face on entering editmode to the last selected, visible face  (if unset)

10 years agoNLA Bugfix for Lee: Changing action extents doesn't update the strip lengths too
Joshua Leung [Tue, 19 Jan 2010 11:43:29 +0000 (11:43 +0000)]
NLA Bugfix for Lee: Changing action extents doesn't update the strip lengths too

10 years agoMotion Paths - (Part 3) Operators, Drawing, and Fixes
Joshua Leung [Tue, 19 Jan 2010 11:31:49 +0000 (11:31 +0000)]
Motion Paths - (Part 3) Operators, Drawing, and Fixes

This commit makes the new-style Motion Paths work for Objects and Bones. Motion Paths can either be added for Objects (Object buttons) or for Selected Bones in PoseMode (Armature Buttons), and/or removed from these panels too.

Changes:
* Changed the way the baking code worked, since it was better to be able to bake a bunch of objects at once, instead of doing it per object
* Fixed a variety of bugs regarding initialising defaults and reading old files
* Added operators for Objects (like for bones), and replaced the existing code for bones.
* Fixed bug with baking code that was causing it to bake the wrong ranges

Todos:
* Frame number drawing is currently messed up, since the "cached" text drawing takes into account the object transforms.
* The new MotionPath panels currently appear as the first panels in the respective contexts, probably due to the order in which the files are included. This needs some fixing, though not sure what the best way is yet.

10 years agopatch [#20690] Cut Linking for Logic Bricks
Campbell Barton [Tue, 19 Jan 2010 11:24:42 +0000 (11:24 +0000)]
patch [#20690] Cut Linking for Logic Bricks
from Dalai Felinto (dfelinto)

cutting kinks now works the same as in the node editor.

10 years ago[#20722] Ignore non-existent files from .Blog
Campbell Barton [Tue, 19 Jan 2010 11:11:56 +0000 (11:11 +0000)]
[#20722] Ignore non-existent files from .Blog
from Sergey Sharybin (nazgul)
- added own minor changes.

10 years agopatch [#20612] Making Blender compile on AIX 4.3.3
Campbell Barton [Tue, 19 Jan 2010 10:57:59 +0000 (10:57 +0000)]
patch [#20612] Making Blender compile on AIX 4.3.3
from Philipp G├╝hring (sourcerer)

10 years agosetting the timeline endframe didnt work if the preview range was used.
Campbell Barton [Tue, 19 Jan 2010 10:36:33 +0000 (10:36 +0000)]
setting the timeline endframe didnt work if the preview range was used.

10 years agoconvert rotations into radians (not scale)
Campbell Barton [Tue, 19 Jan 2010 09:51:09 +0000 (09:51 +0000)]
convert rotations into radians (not scale)

10 years agopep8 compliance for Randomize objects loc/rot/scale.
Campbell Barton [Tue, 19 Jan 2010 09:36:40 +0000 (09:36 +0000)]
pep8 compliance for Randomize objects loc/rot/scale.
- scale min -1 to 1 rather then -100 to 100
- default precision for float props to 2.

10 years agoown error from changes to this script.
Campbell Barton [Tue, 19 Jan 2010 09:24:39 +0000 (09:24 +0000)]
own error from changes to this script.
need to call random.uniform() even if its not used to give pradictable randomization.

10 years agoFix [#20067] Blender 2.5.0 Alpha0 - Duplicating Window
Matt Ebb [Tue, 19 Jan 2010 06:49:50 +0000 (06:49 +0000)]
Fix [#20067] Blender 2.5.0 Alpha0 - Duplicating Window

10 years agoFix [#20730] Auto Auto-depth with scroll wheel
Matt Ebb [Tue, 19 Jan 2010 04:14:57 +0000 (04:14 +0000)]
Fix [#20730] Auto Auto-depth with scroll wheel

Campbell, as far as I can see, this should be fine, but you might want to doublecheck.

10 years agoAdded new macro "file.select_execute", by default mapped to LMB doubleclick in file...
Matt Ebb [Tue, 19 Jan 2010 03:59:05 +0000 (03:59 +0000)]
Added new macro "file.select_execute", by default mapped to LMB doubleclick in file selector.
This selects+opens the file under the mouse pointer, can be customised.

This somewhat fixes [#20727] MMB don't load .blend from the file browser

10 years agoPartial fix for issues in [#20564] Color Management/Linear Workflow not taken into
Matt Ebb [Tue, 19 Jan 2010 02:47:44 +0000 (02:47 +0000)]
Partial fix for issues in [#20564] Color Management/Linear Workflow not taken into
account in Preview Render anymore?

10 years ago* Make image Histogram only update when region is visible
Matt Ebb [Tue, 19 Jan 2010 02:26:36 +0000 (02:26 +0000)]
* Make image Histogram only update when region is visible
* Clean up some remaining code

10 years agoFix compile on msvc (inline)
Matt Ebb [Tue, 19 Jan 2010 02:15:37 +0000 (02:15 +0000)]
Fix compile on msvc (inline)

10 years agoFinished some work from the weekend to keep local tree clean..
Matt Ebb [Tue, 19 Jan 2010 01:32:06 +0000 (01:32 +0000)]
Finished some work from the weekend to keep local tree clean..

* Added a generic 'histogram' ui control, currently available in new image editor
'scopes' region (shortcut P). Shows the histogram of the currently viewed image.

It's a baby step in unifying the functionality and code from the sequence editor,
so eventually we can migrate the sequence preview to the image editor too,
like compositor.

Still a couple of rough edges to tweak, regarding when it updates. Also would
be very nice to have this region as a partially transparent overlapping region...

10 years agopatch [#20724] Randomize Loc Rot Size py operator for B2.5
Campbell Barton [Tue, 19 Jan 2010 00:59:36 +0000 (00:59 +0000)]
patch [#20724] Randomize Loc Rot Size py operator for B2.5
written from scratch by Daniel Salazar (zanqdo). added own modifications.

New property type
 bpy.props.FloatVectorProperty(), only difference with float is it takes a 'size' argument and optional 'default' sequence of floats.

moved bpy.props.* functions out of bpy_rna.c into their own C file.

10 years agoTimeline: Keyframe Drawing for All Selected Objects
Joshua Leung [Mon, 18 Jan 2010 23:31:46 +0000 (23:31 +0000)]
Timeline: Keyframe Drawing for All Selected Objects

When 'Only Selected' is ON, or the Active Object is in PoseMode, only the keyframes for the active Object are drawn (*).

Otherwise, the keyframes for the scene (sequence+nodes+world), and the selected Objects (including the Active Object) are drawn.

(*) I've also made some changes here to try and get only the selected bones showing here, but some further changes are still needed for that to be able to work.

---

Also, fixed bug in makesrna caused by missing newlines for error prints. This resulted in all error-output from makesrna appearing on a single line.

10 years agoFix input issue with Time Scale (center2d needs to be specially calculated for that...
Martin Poirier [Mon, 18 Jan 2010 22:21:32 +0000 (22:21 +0000)]
Fix input issue with Time Scale (center2d needs to be specially calculated for that transformation).

10 years agoRemoved workaround from weekend. See mailing list for details.
Joerg Mueller [Mon, 18 Jan 2010 20:11:31 +0000 (20:11 +0000)]
Removed workaround from weekend. See mailing list for details.

10 years agoload the user prefs before python so the python userdir is read.
Campbell Barton [Mon, 18 Jan 2010 18:52:03 +0000 (18:52 +0000)]
load the user prefs before python so the python userdir is read.

10 years agocmake was missing openal include path
Campbell Barton [Mon, 18 Jan 2010 17:14:54 +0000 (17:14 +0000)]
cmake was missing openal include path

10 years agoappend/prepend class methods for the header and panels (previously only worked for...
Campbell Barton [Mon, 18 Jan 2010 16:47:26 +0000 (16:47 +0000)]
append/prepend class methods for the header and panels (previously only worked for menus)

Example of adding a button to the view header;

 def draw_custom(self, context): self.layout.operator("some.operator")
 bpy.types.VIEW3D_HT_header.append(draw_custom)

10 years agorevert for last commit, this should fix the proplem properly.
Campbell Barton [Mon, 18 Jan 2010 16:21:23 +0000 (16:21 +0000)]
revert for last commit, this should fix the proplem properly.
- selected bones on hidden layers would be selected for weight painting (confusing to the user). use the 'active' bone instead.
- when no weight group was set, the index used for the bone group was off by 1.

10 years agofix for weight painting bug, weight painting would fail when entering weight pait...
Campbell Barton [Mon, 18 Jan 2010 15:33:43 +0000 (15:33 +0000)]
fix for weight painting bug, weight painting would fail when entering weight pait mode in some cases.

10 years ago- opengl render anim exec function so python can render opengl animations without...
Campbell Barton [Mon, 18 Jan 2010 14:40:06 +0000 (14:40 +0000)]
- opengl render anim exec function so python can render opengl animations without and have it block until its done.
- timeline rna camera access.
- new textblocks have tabs as spaces enabled by default since this is blenders default.

10 years agoOSX/scons : fix cross-build issue during linking phase with dynlibs
Damien Plisson [Mon, 18 Jan 2010 14:08:40 +0000 (14:08 +0000)]
OSX/scons : fix cross-build issue during linking phase with dynlibs

10 years agomake the animation read error message say if the file wasnt found.
Campbell Barton [Mon, 18 Jan 2010 11:46:19 +0000 (11:46 +0000)]
make the animation read error message say if the file wasnt found.

10 years agofix for movie files sequence strip names not working unless the first frame of the...
Campbell Barton [Mon, 18 Jan 2010 11:22:32 +0000 (11:22 +0000)]
fix for movie files sequence strip names not working unless the first frame of the movie was shown.

10 years agoreference docs: include type info with function return values
Campbell Barton [Mon, 18 Jan 2010 10:45:54 +0000 (10:45 +0000)]
reference docs: include type info with function return values

10 years agopython script reloading (f8)
Campbell Barton [Mon, 18 Jan 2010 10:02:55 +0000 (10:02 +0000)]
python script reloading (f8)
- reload modules from types that are not directly included. for example wm.py uses classes from modules/rna_prop_ui.py which wasnt reloaded.
- script paths were being added to sys.path multiple times.

note: now the second reload gives a crash right away but this is a bug elsewhere.

10 years agoFix for part of [#20251] Some Node UI problems
Matt Ebb [Mon, 18 Jan 2010 08:38:53 +0000 (08:38 +0000)]
Fix for part of [#20251] Some Node UI problems

Tweaked the padding around sockets when dragging connections.

10 years agoFix [#19914] spacebar menu text stays on screen after click and drag
Matt Ebb [Mon, 18 Jan 2010 07:40:21 +0000 (07:40 +0000)]
Fix [#19914] spacebar menu text stays on screen after click and drag

Button wasn't getting freed correctly after exiting immediately after text selection

10 years agoFix [#20703] Minor UI bug in file browser
Matt Ebb [Mon, 18 Jan 2010 03:36:19 +0000 (03:36 +0000)]
Fix [#20703] Minor UI bug in file browser

10 years agoFix [#20702] Problems with Colormanagement
Matt Ebb [Mon, 18 Jan 2010 02:10:55 +0000 (02:10 +0000)]
Fix [#20702] Problems with Colormanagement

Own bug in previous fix here..

10 years agoFix for window not redrawing properly on resize (on osx at least), add a
Matt Ebb [Mon, 18 Jan 2010 01:59:16 +0000 (01:59 +0000)]
Fix for window not redrawing properly on resize (on osx at least), add a
NC_WINDOW notifier as well as NC_SCREEN, since both have changed.

10 years agoDopeSheet Keyframe/NLA Strip Scaling Tool:
Joshua Leung [Mon, 18 Jan 2010 00:45:33 +0000 (00:45 +0000)]
DopeSheet Keyframe/NLA Strip Scaling Tool:

Scaling behaviour relative to mouse movement was inverted. Made the this transform tool now use the standard input mechanism for scaling inputs so that the behaviour is now correct.

Martin: In my tests, the responsiveness of the scale tool is now not sensitive enough though. If you have some time, could you look into whether this can be made to work a bit freer?

10 years agoNLA (Un)Mapping Fixes:
Joshua Leung [Mon, 18 Jan 2010 00:35:28 +0000 (00:35 +0000)]
NLA (Un)Mapping Fixes:

Hopefully this time I've finally found the proper fix for this. At least in the mini test-suite I made for this, the new inverse process seemed stable enough.

---

Also, tweaked the keyframe drawing code so that it doesn't convert the handles too when performing NLA mapping. This should provide some minor speed boosts when drawing keyframes under these conditions...

10 years agoFix linking cmake on non-windows platforms (ELSEIF -> ELSE ) :)
Matt Ebb [Sun, 17 Jan 2010 22:12:00 +0000 (22:12 +0000)]
Fix linking cmake on non-windows platforms (ELSEIF -> ELSE ) :)

10 years agoBGE: Mouse Sensor type defaults to 1 (MOUSELEFT ) + remove camera attribute from...
Dalai Felinto [Sun, 17 Jan 2010 21:46:34 +0000 (21:46 +0000)]
BGE: Mouse Sensor type defaults to 1 (MOUSELEFT ) + remove camera attribute from Camera objects.
(if you want to mark your camera objects create a property manually ;)

That way object.getPropertyNames() works consistently across all object types.

10 years agoundo previous cmake fixes, Benoit already fixed it in cmake/macros.cmake
Erwin Coumans [Sun, 17 Jan 2010 21:00:07 +0000 (21:00 +0000)]
undo previous cmake fixes, Benoit already fixed it in cmake/macros.cmake

10 years agofixed sphinx doc generator
Campbell Barton [Sun, 17 Jan 2010 20:59:35 +0000 (20:59 +0000)]
fixed sphinx doc generator
- arguments, return values indentation means they get correctly interpreted by sphinx
- functions with no return values were displaying return as ()
- return values were getting the '(optional)' added in some cases.

Example:
http://www.blender.org/documentation/250PythonDoc/bpy.ops.object.html

10 years agocmake fix broken OSX build: those openmp flags break OSX build, it might only work...
Erwin Coumans [Sun, 17 Jan 2010 20:25:28 +0000 (20:25 +0000)]
cmake fix broken OSX build: those openmp flags break OSX build, it might only work on other unixes that way

10 years agobugfix [#20639] BF25_SVN_25888 and below - OBJ and 3DS import fails
Campbell Barton [Sun, 17 Jan 2010 20:06:34 +0000 (20:06 +0000)]
bugfix [#20639] BF25_SVN_25888 and below - OBJ and 3DS import fails

blender supports type changing for textures in a way that python doesnt.
add a new general function.

Example usage:
 tex = bpy.data.textures.new("Foo")
 tex.type = 'IMAGE'
 tex = tex.recast_type()

Macro to give the number of users accounting for fake user.
 ID_REAL_USERS(id)
Use this so you can remove a datablock if it has a fake users as well as apply transformations to it in the 3D view.

Move api function bpy.data.add_texture() --> bpy.data.textures.new()/remove()

10 years agocmake fix for Windows: link OpenCollada <libraryname>_d.lib in debug builds and ...
Erwin Coumans [Sun, 17 Jan 2010 19:34:01 +0000 (19:34 +0000)]
cmake fix for Windows: link OpenCollada <libraryname>_d.lib in debug builds and <libraryname>.lib in release builds
this prevents crashing at startup of Blender in debug builds with cmake.

See bugreport by Andrea in the mailinglist here:
http://www.mail-archive.com/bf-committers@blender.org/msg00668.html

Also enabled WITH_OPENCOLLADA in cmake by default so the feature gets tested. If other devs like to keep OpenCollada it disabled, please revert the ON to OFF again.

10 years agoAdd more stub functions for blenderplayer.
Benoit Bolsee [Sun, 17 Jan 2010 19:20:05 +0000 (19:20 +0000)]
Add more stub functions for blenderplayer.

10 years agoUpdate MSVC project files
Benoit Bolsee [Sun, 17 Jan 2010 19:19:33 +0000 (19:19 +0000)]
Update MSVC project files

10 years agoFix link libraries for Win32 Cmake debug build. Unfortunately, debug builds are still...
Benoit Bolsee [Sun, 17 Jan 2010 19:19:15 +0000 (19:19 +0000)]
Fix link libraries for Win32 Cmake debug build. Unfortunately, debug builds are still crashing at startup - need to investigate further.

10 years agobugfix [#20712] wavefront obj import fails with default import settings
Campbell Barton [Sun, 17 Jan 2010 17:36:11 +0000 (17:36 +0000)]
bugfix [#20712] wavefront obj import fails with default import settings

10 years agofix for own bug in name flipping, was modifying the original name (very bad!).
Campbell Barton [Sun, 17 Jan 2010 16:00:54 +0000 (16:00 +0000)]
fix for own bug in name flipping, was modifying the original name (very bad!).

10 years agoMSVC 9 projectfiles
Andrea Weikert [Sun, 17 Jan 2010 14:47:14 +0000 (14:47 +0000)]
MSVC 9 projectfiles
* update for animviz.c
* updated glew dependency for ghost.

10 years agohave makesrna only replace newly generated files when their contents changes.
Campbell Barton [Sun, 17 Jan 2010 14:04:40 +0000 (14:04 +0000)]
have makesrna only replace newly generated files when their contents changes.
previously changing one rna_*.c file would rebuild them all making it slow to test small changes on the rna api.

also made errors in rna and dna generated give C defined #error's and line numbers that cause them.

10 years agoText Editor: indent and unindent now supports tabs/spaces according to (text->flags...
Dalai Felinto [Sun, 17 Jan 2010 03:15:27 +0000 (03:15 +0000)]
Text Editor: indent and unindent now supports tabs/spaces according to (text->flags & TXT_TABSTOSPACES).

Code-wise it looks now (again) that tab is the default. I hope that'ok. For bitwise operation it's cleaner IMO if the check is for positive values on them.

* TXT_TABSIZE is still harcoded to 4 spaces *

10 years agoTest Editor fix: Ctrl+LEFT/RIGHT was set twice (one of them wrongly)
Dalai Felinto [Sun, 17 Jan 2010 02:10:54 +0000 (02:10 +0000)]
Test Editor fix: Ctrl+LEFT/RIGHT was set twice (one of them wrongly)

10 years agopatch [#20560] [patch] KX_GameObject.obcolor
Campbell Barton [Sat, 16 Jan 2010 23:53:51 +0000 (23:53 +0000)]
patch [#20560] [patch] KX_GameObject.obcolor
by Mitchell Stokes (moguri)
* renamed attribute obcolor to color

10 years agoresizing any area/region would redraw all views in every window.
Campbell Barton [Sat, 16 Jan 2010 22:56:52 +0000 (22:56 +0000)]
resizing any area/region would redraw all views in every window.
This means a large scene will make blender resize the border between the timeline and the graph editor slow since it redraws the 3d view for each update.

edited the operators to only redraw whats needed. since tons away IFDEF'd this incse it needs to be reverted.

10 years agodebug prints are too much on my system it hangs ddd.
Campbell Barton [Sat, 16 Jan 2010 22:53:05 +0000 (22:53 +0000)]
debug prints are too much on my system it hangs ddd.

10 years agothis isnt needed since the node window can enable it. materials also dont have this...
Campbell Barton [Sat, 16 Jan 2010 22:32:15 +0000 (22:32 +0000)]
this isnt needed since the node window can enable it. materials also dont have this option.

10 years agoShort term workaround for OpenAL + pulse bugs on ubuntu. Not sure if it works, people...
Joerg Mueller [Sat, 16 Jan 2010 22:12:19 +0000 (22:12 +0000)]
Short term workaround for OpenAL + pulse bugs on ubuntu. Not sure if it works, people have to test and report please, I don't have ubuntu. Longer term we hope for an update of the ubuntu packages to fix the problem.

10 years agofrom freakabcd to compile with MSVC10 (beta)
Campbell Barton [Sat, 16 Jan 2010 22:03:26 +0000 (22:03 +0000)]
from freakabcd to compile with MSVC10 (beta)

10 years agoGPU_buffer_setup could return a freed buffer. (when VBO's were used)
Campbell Barton [Sat, 16 Jan 2010 17:47:56 +0000 (17:47 +0000)]
GPU_buffer_setup could return a freed buffer. (when VBO's were used)

10 years agofix for own un-initialized pointer
Campbell Barton [Sat, 16 Jan 2010 15:39:00 +0000 (15:39 +0000)]
fix for own un-initialized pointer

10 years agoWorkaround to fix #20645. Iteration over multidim arrays and slicing of them is broken.
Arystanbek Dyussenov [Sat, 16 Jan 2010 15:20:27 +0000 (15:20 +0000)]
Workaround to fix #20645. Iteration over multidim arrays and slicing of them is broken.

Before fixing this I'd like to clean BPY a bit.

10 years agobugix [#20687] Selection code on duplis gets incorrect draw mode flag
Campbell Barton [Sat, 16 Jan 2010 15:17:40 +0000 (15:17 +0000)]
bugix [#20687] Selection code on duplis gets incorrect draw mode flag
could make selection very slow in some cases

10 years ago- UV header sync selection vert/edge/face buttons were displayed as 3 tickboxes
Campbell Barton [Sat, 16 Jan 2010 14:31:21 +0000 (14:31 +0000)]
- UV header sync selection vert/edge/face buttons were displayed as 3 tickboxes
- fix for all of them being able to be disabled at once.
- 3D header now uses the rna buttons.

10 years agopossible fix for [#20674] SegFault from console 'c = data.texts["text1"].copy()'
Campbell Barton [Sat, 16 Jan 2010 14:05:39 +0000 (14:05 +0000)]
possible fix for [#20674] SegFault from console 'c = data.texts["text1"].copy()'
fix for freeing the undo buffer from a copied text block. (the copy had the old undo pointer)

since I only got an error, not a segfault Im not sure this is the real cause of the crash.

10 years agoFix: MESH_OT_DELETE wasn't working since rev. 26027, MESH_OT_select_by_number_vertice...
Dalai Felinto [Sat, 16 Jan 2010 04:18:21 +0000 (04:18 +0000)]
Fix: MESH_OT_DELETE wasn't working since rev. 26027, MESH_OT_select_by_number_vertices neither
for the MESH_OT_select_...  ENUM text fix (s/Triangles/Quads) and invoke added (WM_menu_invoke).

10 years agoSmall patch from freakabcd in irc: disable camera dof distance if dof object is set
Matt Ebb [Sat, 16 Jan 2010 02:12:03 +0000 (02:12 +0000)]
Small patch from freakabcd in irc: disable camera dof distance if dof object is set

10 years agomirror modifier vgroup option was doing string name conversion to find the flipped...
Campbell Barton [Sat, 16 Jan 2010 01:15:47 +0000 (01:15 +0000)]
mirror modifier vgroup option was doing string name conversion to find the flipped name for every vertex for every weight.
the vertex flip mapping only needs to be made once.

warning fixes too.

10 years agoFix [#20418] ring select in face mode selects edges not faces
Matt Ebb [Sat, 16 Jan 2010 00:59:59 +0000 (00:59 +0000)]
Fix [#20418] ring select in face mode selects edges not faces

10 years agogeneric operator menu was searching for "type" and using the first enum property...
Campbell Barton [Fri, 15 Jan 2010 22:40:33 +0000 (22:40 +0000)]
generic operator menu was searching for "type" and using the first enum property if it wasnt found.
this is too arbitrary and could break if roperty order is changed.
store the property in the operator type that is to be used for menu and enum search func's.

python function for searching operator enums on invoke. (just need dynamic python enums now)
 wm.invoke_search_popup(self)

10 years agoremove duplicate code from operator/macro initialization
Campbell Barton [Fri, 15 Jan 2010 22:02:32 +0000 (22:02 +0000)]
remove duplicate code from operator/macro initialization

10 years ago*Fix for last commit. Removed unused code.
Thomas Dinges [Fri, 15 Jan 2010 17:36:06 +0000 (17:36 +0000)]
*Fix for last commit. Removed unused code.

10 years ago- particle drawing was using invalid memory with weights.
Campbell Barton [Fri, 15 Jan 2010 17:28:00 +0000 (17:28 +0000)]
- particle drawing was using invalid memory with weights.
- particle set weight operator (Shift + K) and from the menu.
- mirror vertex groups operator can also flip weight group names.

a number of utility functions for weight groups added
 int *get_defgroup_flip_map(struct Object *ob);
 void flip_vertexgroup_name (char *name_r, const char *name, int strip_number); // moved from modifier.c
 void copy_defvert (struct MDeformVert *dvert_r, const struct MDeformVert *dvert);
 void flip_defvert (struct MDeformVert *dvert, int *flip_map);

10 years agoa new generic invoke function - WM_enum_search_invoke()
Campbell Barton [Fri, 15 Jan 2010 17:23:16 +0000 (17:23 +0000)]
a new generic invoke function - WM_enum_search_invoke()
This can search operators enum property.

Make proxy menu could easily get too big. use the new search popup.

10 years agofix for compiler error, probably unlikely but if 'v' is NULL it could crash.
Campbell Barton [Fri, 15 Jan 2010 17:19:01 +0000 (17:19 +0000)]
fix for compiler error, probably unlikely but if 'v' is NULL it could crash.

10 years agoConsole:
Thomas Dinges [Fri, 15 Jan 2010 17:00:37 +0000 (17:00 +0000)]
Console:
* Added Theme support for the console.
You can change:
-Header Color
-Text Color of Output, Input, Info and Error Messages. (Inside the User Preferences -> Themes)

10 years agobugfix [#20688] Mesh with no materials fails to export UV layout
Campbell Barton [Fri, 15 Jan 2010 12:21:33 +0000 (12:21 +0000)]
bugfix [#20688] Mesh with no materials fails to export UV layout

10 years agoReverting changes made in r25940 with the NLA unmapping.
Joshua Leung [Fri, 15 Jan 2010 10:34:39 +0000 (10:34 +0000)]
Reverting changes made in r25940 with the NLA unmapping.

The reverted code was just blindly restoring the old state of the keyframes; changes to selection state, value changes, handle type, etc. were overridden, and the cases where keyframes were deliberately retimed or otherwise were also ignored.

I'm not sure what problems these changes were meant to be solving, but will reassess the situation when I get more info on this.

10 years ago[#20685] Fixed: cleaned up descriptions, removed unrelated comments in code
Campbell Barton [Fri, 15 Jan 2010 10:02:02 +0000 (10:02 +0000)]
[#20685] Fixed: cleaned up descriptions, removed unrelated comments in code
from Jaevixa McNomera (jaevixa)

10 years ago* don't copy .pyc files
Nathan Letwory [Fri, 15 Jan 2010 09:59:42 +0000 (09:59 +0000)]
* don't copy .pyc files

10 years agoFix [#20437] Impossible to load "voxel data" sequence file from
Matt Ebb [Fri, 15 Jan 2010 07:26:38 +0000 (07:26 +0000)]
Fix [#20437] Impossible to load "voxel data" sequence file from
texture panel (field missing?)

10 years ago* Fix two issues:
Nathan Letwory [Fri, 15 Jan 2010 07:04:00 +0000 (07:04 +0000)]
* Fix two issues:
   - makesrna would crash on Windows with this malloc business (writing wrong places).
   - The one malloc never got freed (apart from not being MEM_callocN - which should be used instead of vanilla malloc/calloc!)

10 years agoFix [#20129] emulate numpad
Matt Ebb [Fri, 15 Jan 2010 06:17:28 +0000 (06:17 +0000)]
Fix [#20129] emulate numpad

Converted Command+LMB to send a RMB click event on Mac OS X, if Emulate 3 Button Mouse is switched on.

Also fixes for previous commit, didn't all go through.

10 years agoTweaked/added poll functions to prevent operators that require
Matt Ebb [Fri, 15 Jan 2010 06:10:05 +0000 (06:10 +0000)]
Tweaked/added poll functions to prevent operators that require
a 3D View from being used outside the 3D View (i.e. the info header
search button)

10 years agoFix [#20514] In sculpting mode is possible to use page down/up to exceed the actual...
Matt Ebb [Fri, 15 Jan 2010 05:00:02 +0000 (05:00 +0000)]
Fix [#20514] In sculpting mode is possible to use page down/up to exceed the actual multiresolution level

10 years agoAdding back cursor to center menu entry that was mistakingly removed by an unnamed...
Martin Poirier [Fri, 15 Jan 2010 01:21:56 +0000 (01:21 +0000)]
Adding back cursor to center menu entry that was mistakingly removed by an unnamed person.

10 years agoTransform Constraints: When axis is quasi perpendicular to the screen (within 5 degre...
Martin Poirier [Fri, 15 Jan 2010 00:35:21 +0000 (00:35 +0000)]
Transform Constraints: When axis is quasi perpendicular to the screen (within 5 degrees), it uses vertical motion of the mouse instead of normal axis projection. This behavior isn't new, but the 5 degrees limit is (it's also the limit at which manipulator axis disappear), it used to be much lower than that making small angles hard to manage.

10 years agofix for possible crash with the boundbox of a mesh used when freed.
Campbell Barton [Thu, 14 Jan 2010 23:59:13 +0000 (23:59 +0000)]
fix for possible crash with the boundbox of a mesh used when freed.

10 years agopatch [#20673] Fixed descriptions in Torus mesh controls, and added some requested...
Campbell Barton [Thu, 14 Jan 2010 22:45:56 +0000 (22:45 +0000)]
patch [#20673] Fixed descriptions in Torus mesh controls, and added some requested controls
from Jaevixa McNomera (jaevixa)

10 years agoText Editor: Add an option "Tabs as Spaces".
Dalai Felinto [Thu, 14 Jan 2010 21:30:51 +0000 (21:30 +0000)]
Text Editor: Add an option "Tabs as Spaces".
So now tab is not ALWAYS converted to spaces.
This is stored by text datablock (what allows to do nice things in the future, as automatic check for the indentation type of the file).

Ideally we should redraw the other Text Editor windows after changing that (in case the same file is opened and the Property panel is also open). Not sure how to do that though.

I'm using TABSTOSPACES as the DEFINE flag because TABSASSPACES sounds too ugly.

(also fix for interface divisor bug)

10 years agoCtrl+RMB select in the dope-sheet wasnt working, this nlabackup stuff isnt being...
Campbell Barton [Thu, 14 Jan 2010 20:48:25 +0000 (20:48 +0000)]
Ctrl+RMB select in the dope-sheet wasnt working, this nlabackup stuff isnt being done for select-all so not sure why its there, commented it out for now.
Aligorith, please check.

10 years ago[#20672] TimeLine (arrows will not proceed animation)
Martin Poirier [Thu, 14 Jan 2010 19:53:26 +0000 (19:53 +0000)]
[#20672] TimeLine (arrows will not proceed animation)

RNA notifiers don't have a window and didn't get picked up correctly by the animation redraw system. If there's no window defined in a scene notifier, handle it anyway if the scene matches (or if there aren't any).

10 years ago[#19978] Can not switch view with keymaps while emulate numpad is activated; in modes...
Martin Poirier [Thu, 14 Jan 2010 18:15:12 +0000 (18:15 +0000)]
[#19978] Can not switch view with keymaps while emulate numpad is activated; in modes other than object and edit

Was caused by event emulation (numpad and mmb) happening separately at each level of the keymap, so brush selection was latching on the event before it had time to test emulated values with view navigation entries (at a lower level in the hierarchy).

After discussion with Matt, decided that event emulation should be done at the root of the event loop, replacing the event with the emulated values. This is much more predictable and more logical as far as event emulation goes.

10 years agoMkey toggles mask while in vertex/texture/weight paint mode.
Campbell Barton [Thu, 14 Jan 2010 18:11:10 +0000 (18:11 +0000)]
Mkey toggles mask while in vertex/texture/weight paint mode.
remove unused operator property