9 years agoadd 'make debug' option for stub cmake makefile.
Campbell Barton [Sat, 19 Feb 2011 13:46:08 +0000 (13:46 +0000)]
add 'make debug' option for stub cmake makefile.

9 years agoRename global_ft_lib and make it static.
Diego Borghetti [Sat, 19 Feb 2011 13:43:22 +0000 (13:43 +0000)]
Rename global_ft_lib and make it static.

Remove the XXX code from blf_glyph.c and use the pointer
inside the FontBLF struct.

If still have problem, let me know.

9 years agoset main() argv functions to be const char *
Campbell Barton [Sat, 19 Feb 2011 12:05:20 +0000 (12:05 +0000)]
set main() argv functions to be const char *
also set minimum cmake version to 2.8

9 years agoBugfix #26009
Ton Roosendaal [Sat, 19 Feb 2011 11:59:01 +0000 (11:59 +0000)]
Bugfix #26009

Paint cursors were drawing on top of pop-up menus in 3D window,
only in triple-buffer mode though.

9 years agochange shrinkwrap modifier cull front/back options from 2 booleans into an enum since...
Campbell Barton [Sat, 19 Feb 2011 09:53:38 +0000 (09:53 +0000)]
change shrinkwrap modifier cull front/back options from 2 booleans into an enum since it makes no sense to have front and back enabled at once.

9 years agofix for string wrap backface culling not working when one of the objects was rotated.
Campbell Barton [Sat, 19 Feb 2011 09:01:28 +0000 (09:01 +0000)]
fix for string wrap backface culling not working when one of the objects was rotated.
also skip calculating the dot product if its not needed.

9 years agofix [#26104] Context Set Boolean op fails [34892i]
Campbell Barton [Sat, 19 Feb 2011 04:28:07 +0000 (04:28 +0000)]
fix [#26104] Context Set Boolean op fails [34892i]
could give better feedback but these operators are mainly for internal use.

9 years agoCorrect report [#26139] Documentation is incorrect
Campbell Barton [Sat, 19 Feb 2011 00:58:46 +0000 (00:58 +0000)]
Correct report [#26139] Documentation is incorrect
also remove Irix from list of supported OS's, add FreeBSD.

9 years agoAdd media keys for XFree86/Xorg based X11.
Guillermo S. Romero [Sat, 19 Feb 2011 00:12:34 +0000 (00:12 +0000)]
Add media keys for XFree86/Xorg based X11.
TODO: setup build systems to define WITH_XF86KEYSYM.

9 years agoAudaspace:
Joerg Mueller [Fri, 18 Feb 2011 23:50:27 +0000 (23:50 +0000)]

* Adding play method to the device classes to play back a reader (not used yet, preparation for a later feature).
* Using a linear resampler in case SRC is disabled.

9 years agoRelicensing audaspace under GPL 2 or later.
Joerg Mueller [Fri, 18 Feb 2011 23:47:37 +0000 (23:47 +0000)]
Relicensing audaspace under GPL 2 or later.

9 years agoAdding support for the "media" play/pause/stop/next/prev buttons
Joshua Leung [Fri, 18 Feb 2011 22:42:03 +0000 (22:42 +0000)]
Adding support for the "media" play/pause/stop/next/prev buttons
available on many keyboards these days, so that they can be used for
animation playback (giving more options over alt-a and alt-a ad-

Currently, this is Windows only as I don't have a Linux/Mac system to
test on (it should compile with both mingw and msvc, at least using
scons). Maintainers for those systems can probably easily add this in
once they find out the relevant mappings for those systems.

9 years agoFix for building math nodes provided by DustyDingo
Daniel Salazar [Fri, 18 Feb 2011 22:15:43 +0000 (22:15 +0000)]
Fix for building math nodes provided by DustyDingo

9 years agoSVN maintenance.
Guillermo S. Romero [Fri, 18 Feb 2011 19:33:19 +0000 (19:33 +0000)]
SVN maintenance.

9 years agoFix #26140: Text to 3D object (one object & one object per line) has the same shortcut
Sergey Sharybin [Fri, 18 Feb 2011 19:10:14 +0000 (19:10 +0000)]
Fix #26140: Text to 3D object (one object & one object per line) has the same shortcut

Applying patch provided by Jorge Bernal (lordloki). Thanks!

9 years agoBugfix #26101
Ton Roosendaal [Fri, 18 Feb 2011 17:53:11 +0000 (17:53 +0000)]
Bugfix #26101

Node editor: icons in header sometimes were on wrong locations.
The click hotspots were also off...

9 years agoBugfix 26131
Ton Roosendaal [Fri, 18 Feb 2011 16:47:10 +0000 (16:47 +0000)]
Bugfix 26131

Option "Align view to selected" only aligned to the last activated
item in editmode. This whilst code comment even said "use alignment
from Manipulator in normal mode".

Now it does what it's (apparently) meant to do, and what brazilians
think it should! ;) It aligns to selected!

9 years agoBugfix #26135
Ton Roosendaal [Fri, 18 Feb 2011 16:13:13 +0000 (16:13 +0000)]
Bugfix #26135

User Preferences
Using "no AA font" crashed, caused by commit to make static variables.
However, how this was ever meant to work... using such globals has to be
treated carefully. Fixed for now with XXX warning for Diego :)

Thanks to reporter Susanne H. to point at the right code!

9 years agoBug fix: with bigger than 1 cache step dead particles didn't alway stay dead
Janne Karhu [Fri, 18 Feb 2011 15:21:52 +0000 (15:21 +0000)]
Bug fix: with bigger than 1 cache step dead particles didn't alway stay dead
* Particle die time wasn't properly taken into account when reading from the cache.

9 years agoFix for #26111, #26112 & #26121, "only first button click worked in windows"
Janne Karhu [Fri, 18 Feb 2011 15:06:02 +0000 (15:06 +0000)]
Fix for #26111, #26112 & #26121, "only first button click worked in windows"
* In windows the old button was tested to be equal to the new button (ui_but_equals_old()) even if their optype wasn't the same. Adding a check for optypes fixes all three reported issues.
* For some strange reason this didn't happen on other platforms.

9 years agoText space fixes:
Sergey Sharybin [Fri, 18 Feb 2011 14:55:42 +0000 (14:55 +0000)]
Text space fixes:

- Bring back cursor set to PRESS event - block selection wouldn't
  have correct start position;
- Undo stack push was missed in cursor_set operator;
- Remove unneeded cursor moving at set_selection operator;
- Fixed bug with scroll bar - it shouldn't use EVT_TWEAK;

There could be still small issues with selecting single character by
mouse (due to EVT_TWEAK threashold), but this operator is for block
selection, not single char. So shouldn't be big pain here.

9 years agoRemove #ifdef __cplusplus, as it caused C2732 (differences in linkage). Compiles...
Nathan Letwory [Fri, 18 Feb 2011 14:50:49 +0000 (14:50 +0000)]
Remove #ifdef __cplusplus, as it caused C2732 (differences in linkage). Compiles and runs fine without.

9 years agoRemove header include, conflicts otherwise with BLI_math.h
Nathan Letwory [Fri, 18 Feb 2011 14:30:36 +0000 (14:30 +0000)]
Remove header include, conflicts otherwise with BLI_math.h

9 years agoexamples for bpy.props
Campbell Barton [Fri, 18 Feb 2011 14:27:18 +0000 (14:27 +0000)]
examples for bpy.props

9 years agodeclare round() and copysign() when on windows. Implementations for them already...
Nathan Letwory [Fri, 18 Feb 2011 14:22:46 +0000 (14:22 +0000)]
declare round() and copysign() when on windows. Implementations for them already where in math_base.c

9 years agodoxygen: add blenlib under core as module.
Nathan Letwory [Fri, 18 Feb 2011 13:58:08 +0000 (13:58 +0000)]
doxygen: add blenlib under core as module.

9 years agoAnother small text space usability: option to show right margin (aka print marign)
Sergey Sharybin [Fri, 18 Feb 2011 13:57:54 +0000 (13:57 +0000)]
Another small text space usability: option to show right margin (aka print marign)

9 years agorender engine example thanks to dougal2.
Campbell Barton [Fri, 18 Feb 2011 13:40:13 +0000 (13:40 +0000)]
render engine example thanks to dougal2.

9 years agodoxygen: blenkernel under core as module.
Nathan Letwory [Fri, 18 Feb 2011 13:05:18 +0000 (13:05 +0000)]
doxygen: blenkernel under core as module.

9 years agoBugfix #26127
Ton Roosendaal [Fri, 18 Feb 2011 12:53:46 +0000 (12:53 +0000)]
Bugfix #26127

Buttons drawing of floating point values still was using 4 digits
as maxumum precision. RNA definitions for float allows 7 easily.

9 years agoBugfix #26128
Ton Roosendaal [Fri, 18 Feb 2011 12:34:31 +0000 (12:34 +0000)]
Bugfix #26128

Compositor/texture nodes: math node now allows to use pow() for
negative raising too, but only when that value is near-integer.
For other negative cases result is zero.
Patch provided by Aurel W

9 years agodoxygen: readblenfile part of data group
Nathan Letwory [Fri, 18 Feb 2011 10:35:37 +0000 (10:35 +0000)]
doxygen: readblenfile part of data group

9 years agoBGE Expressions: convert "\n" to real \n
Dalai Felinto [Fri, 18 Feb 2011 10:10:48 +0000 (10:10 +0000)]
BGE Expressions: convert "\n" to real \n
example of usage:

0) Game Properties: text (String) and log (Boolean=True)
1) Keyboard Sensor set to AllKeys with log as logging and text as Target
2) Expression Controller: text=="quit\n"
3) Game Actuator: Quit Game

[1] <-> [2] <-> [3] .:. this will quit the game when you write quit + Enter

4) Keyboard Sensor: set to Return
5) And Controller
6) Property Actuator: Assign text property to ""

[4] <-> [5] <-> [6] .:. this will reset the string everytime you press Enter

# # # # # # # # # # # # # # # # # # # # # # #
Since the change is in the InputParser.cpp it actually affects all the text
input fields in the Logic Editor. So for instance you can use it in the
assign Property Actuator.
# # # # # # # # # # # # # # # # # # # # # # #
Connect an expression controller: text="idclip\n" with an actuator to disable
the Collision of your walls and you can re-create Doom with only Logic Bricks (:

9 years agoCheck the os.environ at the start of the build process.
Nathan Letwory [Fri, 18 Feb 2011 09:39:15 +0000 (09:39 +0000)]
Check the os.environ at the start of the build process.
Print any variable that contains a value with non-ascii
characters, then abort build.

9 years agopython api docs & examples for registrable Menu/Panel/Operator/PropertyGroup classes.
Campbell Barton [Fri, 18 Feb 2011 08:47:37 +0000 (08:47 +0000)]
python api docs & examples for registrable Menu/Panel/Operator/PropertyGroup classes.

9 years ago"Fix" for [#26130] Turbulence Force Field seed does not look to generate a new textur...
Janne Karhu [Fri, 18 Feb 2011 07:42:38 +0000 (07:42 +0000)]
"Fix" for [#26130] Turbulence Force Field seed does not look to generate a new texture when the seed changes via IPO keyframe
* Small force field ui changes to make things a bit clearer.

9 years agofix own mistake [#26125] Command line render, absence of CRLF on certain lines
Campbell Barton [Fri, 18 Feb 2011 07:28:10 +0000 (07:28 +0000)]
fix own mistake [#26125] Command line render, absence of CRLF on certain lines

9 years ago- clear some warnings
Campbell Barton [Fri, 18 Feb 2011 06:07:41 +0000 (06:07 +0000)]
- clear some warnings
- rename layout.operator_enums -> operator_enum (since we have operator_menu_enum, only called in 4 places)

9 years agopy api was raising SystemError exception incorrectly, this is intended for internal...
Campbell Barton [Fri, 18 Feb 2011 06:04:05 +0000 (06:04 +0000)]
py api was raising SystemError exception incorrectly, this is intended for internal interpreter problems.
Replace most with RuntimeError.

9 years agoFix for [#26120] Particle Grid options available when shouldn't
Janne Karhu [Fri, 18 Feb 2011 00:40:15 +0000 (00:40 +0000)]
Fix for [#26120] Particle Grid options available when shouldn't

9 years agoParticle fluid settings weren't copied when particle settings were copied.
Janne Karhu [Fri, 18 Feb 2011 00:21:19 +0000 (00:21 +0000)]
Particle fluid settings weren't copied when particle settings were copied.
* Also removed some unnecessary null checks.

9 years agoParticle textures didn't use original coordinates properly for grid distribution.
Janne Karhu [Fri, 18 Feb 2011 00:17:46 +0000 (00:17 +0000)]
Particle textures didn't use original coordinates properly for grid distribution.

9 years agoBring blenloader module under data group. Rename the group to look a bit more sensibl...
Nathan Letwory [Thu, 17 Feb 2011 23:34:07 +0000 (23:34 +0000)]
Bring blenloader module under data group. Rename the group to look a bit more sensible in the output.

9 years agofix for build warning with openCOLLADA svn833 reported by Dave Plater.
Campbell Barton [Thu, 17 Feb 2011 22:57:56 +0000 (22:57 +0000)]
fix for build warning with openCOLLADA svn833 reported by Dave Plater.
Also fixed duplicate header define between 2 includes.

9 years agopatch [#26056] fix for ValueError when no addons are present
Campbell Barton [Thu, 17 Feb 2011 22:38:51 +0000 (22:38 +0000)]
patch [#26056] fix for ValueError when no addons are present
by Amorilia (amorilia), fix modified.

9 years agoClear some compiler warnings by commenting some functions, adding others to headers.
Campbell Barton [Thu, 17 Feb 2011 22:34:41 +0000 (22:34 +0000)]
Clear some compiler warnings by commenting some functions, adding others to headers.
left in warnings where functions obviously need to get ported to 2.5x still.

Also, render stamp seq strip works again.

9 years agomalloc() comes from stdlib.h per K&R ANSI C, C89 & C99.
Guillermo S. Romero [Thu, 17 Feb 2011 21:14:54 +0000 (21:14 +0000)]
malloc() comes from stdlib.h per K&R ANSI C, C89 & C99.
If some plataform really needs malloc.h, that is the exception to get #ifdef.

9 years agoDNA header files are now grouped under the same module. No further documentation...
Nathan Letwory [Thu, 17 Feb 2011 20:48:12 +0000 (20:48 +0000)]
DNA header files are now grouped under the same module. No further documentation done.

9 years agoOne more small text space usability: select work by double-click on it
Sergey Sharybin [Thu, 17 Feb 2011 19:26:59 +0000 (19:26 +0000)]
One more small text space usability: select work by double-click on it

- Change cursor changing from mouse press to mouse click. A bit "delayed"
  UI feedback, but otherwise we'll be unable to use double-click events here
- Change clinebacks to callbacks in comment for select_line operator.
  Or it was supposed to be clinebacks?

9 years agoSimple re-order of first/last point checking when adding point to
Sergey Sharybin [Thu, 17 Feb 2011 19:03:12 +0000 (19:03 +0000)]
Simple re-order of first/last point checking when adding point to
NURBS spline. Need to make new point be last in array.

Beziers already has the same behaviour, so things would be more uniform now.

9 years agoSplit cursor_set into two operators:
Sergey Sharybin [Thu, 17 Feb 2011 18:55:17 +0000 (18:55 +0000)]
Split cursor_set into two operators:
- cursor_set which just sets cursor position immediatelly
- selection_set which could be used to select block of text

Now there're could be operators binded to mouse double-click event

9 years agoStart simple intros for intern and extern libs.
Nathan Letwory [Thu, 17 Feb 2011 16:17:40 +0000 (16:17 +0000)]
Start simple intros for intern and extern libs.
Some reorg of modules/pages, start makesdna and makesrna.
In many places license block needs to be changed to not start with /**, because otherwise documentation will go weird.

9 years agoSpall text space usability:
Sergey Sharybin [Thu, 17 Feb 2011 15:24:43 +0000 (15:24 +0000)]
Spall text space usability:
Use shift-del to cut, ctrl-ins to copy and shift-ins to paste

Most of editors support this hotkeys and it's annoying when you
trying to use them in text space.

9 years agoclear some unused warnings
Campbell Barton [Thu, 17 Feb 2011 12:05:09 +0000 (12:05 +0000)]
clear some unused warnings

9 years agopatch [#26063] Fix deb package versioning (Patch for #26062)
Campbell Barton [Thu, 17 Feb 2011 11:49:54 +0000 (11:49 +0000)]
patch [#26063] Fix deb package versioning (Patch for #26062)
from Shinsuke Irie (irie),
also updated pacman

9 years agoCMake: remove workaround for cmake 2.8.3 problem testing -Werror=strict-prototypes...
Campbell Barton [Thu, 17 Feb 2011 11:38:02 +0000 (11:38 +0000)]
CMake: remove workaround for cmake 2.8.3 problem testing -Werror=strict-prototypes flag (now 2.8.4 is out).
This is harmless, CMake 2.8.3 just wont build with -Werror=strict-prototypes which is nice for picky devs.

9 years agoOpenGL playblasts now respect Preview Range, making it easier to
Joshua Leung [Thu, 17 Feb 2011 10:18:14 +0000 (10:18 +0000)]
OpenGL playblasts now respect Preview Range, making it easier to
render out short segments of shots to be previewed with accurate

9 years agoapply fix [#26117] Recent changes to "mikktspace.c" broke building on FreeBSD. Patch...
Campbell Barton [Thu, 17 Feb 2011 08:35:15 +0000 (08:35 +0000)]
apply fix [#26117] Recent changes to "mikktspace.c" broke building on FreeBSD. Patch attached.
also check for NetBSD.

note: we probably should use define HAVE_MALLOC_H, seems common for other projects.

9 years agoAdd missing file from r34923
Nathan Letwory [Thu, 17 Feb 2011 08:01:59 +0000 (08:01 +0000)]
Add missing file from r34923

9 years agoChange to how python classes are initialized when blender calls them.
Campbell Barton [Thu, 17 Feb 2011 07:21:44 +0000 (07:21 +0000)]
Change to how python classes are initialized when blender calls them.

Annoyance was that operators that defined and __init__ function would need to do...
    def __init__(self, another_self):

py/rna was calling the class directly with PyObject_Call() but needed to pass the pre-allocated object only so __init__() would run .
This works OK internally but becomes messy since __new__ and __init__ always get the same args there was no way to avoid a superfluous self argument to __init__.

9 years agoerror case not being handled when calling python classes from RNA
Campbell Barton [Thu, 17 Feb 2011 06:56:24 +0000 (06:56 +0000)]
error case not being handled when calling python classes from RNA

9 years agoincorrect type passed to BKE_free_animdata()
Campbell Barton [Thu, 17 Feb 2011 06:23:16 +0000 (06:23 +0000)]
incorrect type passed to BKE_free_animdata()

9 years agoStarting work on doxygen cleanup. Many things still to be done.
Nathan Letwory [Thu, 17 Feb 2011 05:57:18 +0000 (05:57 +0000)]
Starting work on doxygen cleanup. Many things still to be done.

9 years agopep8 cleanup and remove unused vars/imports
Campbell Barton [Thu, 17 Feb 2011 04:35:41 +0000 (04:35 +0000)]
pep8 cleanup and remove unused vars/imports

9 years agoBugfix: "Tweaking" Markers was working incorrectly
Joshua Leung [Thu, 17 Feb 2011 01:24:52 +0000 (01:24 +0000)]
Bugfix: "Tweaking" Markers was working incorrectly

WM_modal_tweak_exit() was making incorrect use of the user-pref option
"Release Confirms Transform", indicated by confused coder comment
(<quote>"XXX: WTH is this?"</quote>).

This manisfested when moving markers by just click-dragging and
existing marker, and having it "drop" whereever the mouse was released
regardless of the user-pref option. This was quite confusing as it was
inconsistent with the way that all other transforms worked when this
option is off, where you would usually start the transform (click-
drag), release the button, move around a bit, and then finally click
to end.

9 years agoBugfix [#26106] No instant visual feed back for Dupliframes, parenting
Joshua Leung [Wed, 16 Feb 2011 21:54:41 +0000 (21:54 +0000)]
Bugfix [#26106] No instant visual feed back for Dupliframes, parenting
problem and crash

- It turns out we still need the "copyob" still, if for nothing other
than making sure that the unkeyed transforms can get restored. This
was removed originally as I thought that just reevaluating the
animation would work.

- Removed a buggy line of logic that was causing crashes when there
was no animation data. It's better to just assume that if animation
data exists, that something exists there.

- Make Duplicates Real was not clearing data such as the new animation
data or constraints.

9 years ago2.5 UI Interface Scripts:
Thomas Dinges [Wed, 16 Feb 2011 20:29:23 +0000 (20:29 +0000)]
2.5 UI Interface Scripts:
* Code cleanup, seriously we have a lot of unnecessary code!
* Small modification for OpenEXR buttons.

9 years agoBGE: Action and ShapeKey Actuator PingPong playmode.
Dalai Felinto [Wed, 16 Feb 2011 19:53:39 +0000 (19:53 +0000)]
BGE: Action and ShapeKey Actuator PingPong playmode.

I have no idea why this hasn't been implemented before (the DEFINES were even there already). But since the Ipo (Fcurve) Actuator supports it I don't see why Action and ShapeKey shouldn't.
More than a new feature or a bugfix this is actually a step forward into unifying them.

9 years agoMaterial UI: Code cleanup.
Thomas Dinges [Wed, 16 Feb 2011 19:52:32 +0000 (19:52 +0000)]
Material UI: Code cleanup.

Please, don't use a split function if you just have 2 properties in one line, a row is all you need here. ;-)

9 years agoCommit patch [#25939] material panel proposal by Ervin Weber (lusque). Thanks!
Thomas Dinges [Wed, 16 Feb 2011 19:39:45 +0000 (19:39 +0000)]
Commit patch [#25939] material panel proposal by Ervin Weber (lusque). Thanks!

From the patch description:
"A new panel is proposed to bring togheter all the properties of a material that belong to the render pipeline level.
Such properties are currently not mixable with node materials, as nodes operate on a shader level."

Commiting this patch as approved in the sundy meeting.

9 years agoBugfix #26096
Ton Roosendaal [Wed, 16 Feb 2011 18:04:03 +0000 (18:04 +0000)]
Bugfix #26096

Switching layers reveiled hidden objects in wrong positions, changes
are currently not being handled for hidden objects.
Only way to fix it is by completely update newly visible objects...

(Also fixed a typo and a compile warning)

9 years agosphinx doc gen: multiple examples possible and include the scripts docstring inline...
Campbell Barton [Wed, 16 Feb 2011 17:31:04 +0000 (17:31 +0000)]
sphinx doc gen: multiple examples possible and include the scripts docstring inline in sphinx.
also tag unused vars

9 years agoBugfix #26103
Ton Roosendaal [Wed, 16 Feb 2011 12:34:08 +0000 (12:34 +0000)]
Bugfix #26103

Halo texture: disabling texture slot with [] button didn't work.

Note: halos only allow 1 texture slot, UI allows to add more. This
rna template stuff for texture slots I rather don't touch though...

9 years agoMarker Drawing Bugfix:
Joshua Leung [Wed, 16 Feb 2011 12:00:53 +0000 (12:00 +0000)]
Marker Drawing Bugfix:

Removed superfluous blend-mode change which was causing some weird
white lines to appear, especially when using some markers that don't
have any names.

9 years agoFix for [#26102] Particle Texture mismapped on Multires (in some modes)
Janne Karhu [Wed, 16 Feb 2011 11:38:28 +0000 (11:38 +0000)]
Fix for [#26102] Particle Texture mismapped on Multires (in some modes)
* Particle modifier didn't check for particle textures using uv-coordinates properly.

9 years agoForgot to actually hook up this operator...
Joshua Leung [Wed, 16 Feb 2011 11:28:25 +0000 (11:28 +0000)]
Forgot to actually hook up this operator...

9 years agoParticle settings can now be pinned too:
Janne Karhu [Wed, 16 Feb 2011 10:57:58 +0000 (10:57 +0000)]
Particle settings can now be pinned too:
* Particle system's are comparable to texture slots, which can
  only exist within an id block. Particle settings on the other
  hand are idblocks which should be pinnable just like textures.
* When particle settings are pinned only properties that make
  sense without the actual particle system are shown in the
  particle panel.

9 years agoAdded full texture idblock controls for displace and wave modifier.
Janne Karhu [Wed, 16 Feb 2011 10:23:27 +0000 (10:23 +0000)]
Added full texture idblock controls for displace and wave modifier.

9 years agoCorrect texture pinning:
Janne Karhu [Wed, 16 Feb 2011 10:22:19 +0000 (10:22 +0000)]
Correct texture pinning:
* Now texture pinning works consistently for all textures.
* The only problem is that there is no way to pin textures if there are
  no textures in the context path, so it's for example impossible to pin
  the texture of a displace modifier without adding a texture somewhere
  else and selecting that texture first. I my opinion this is quite
  counter productive so perhaps a dedicated "only textures" texture
  context option is needed after all.

9 years agoenum-flag arguments were incorrectly documented.
Campbell Barton [Wed, 16 Feb 2011 10:19:14 +0000 (10:19 +0000)]
enum-flag arguments were incorrectly documented.

9 years agoBugfix [#22535] Dupliframes with keyframe Anim are broken
Joshua Leung [Wed, 16 Feb 2011 09:59:29 +0000 (09:59 +0000)]
Bugfix [#22535] Dupliframes with keyframe Anim are broken

So, it turns out that dupliframes weren't that bad to restore... the
old version didn't do truly accurate transform freezing as it didn't
update ancestors too. However, as a modelling tool, this will probably

9 years agoThe modifications in mkktspace broke compilation on gcc 4.2.x
M.G. Kishalmi [Wed, 16 Feb 2011 08:49:27 +0000 (08:49 +0000)]
The modifications in mkktspace broke compilation on gcc 4.2.x
This is a patch proposed by sparky_ on irc.

9 years agoPoseLib Bugfixes, Cleanups, and Missing Operators
Joshua Leung [Wed, 16 Feb 2011 06:18:20 +0000 (06:18 +0000)]
PoseLib Bugfixes, Cleanups, and Missing Operators

* All the various index-related issues should finally be sorted now.
It seems you cannot just partially implement some of these active
index getter/setters...
* Standardised the call used by PoseLib operators to get the Object
from which they get the active PoseLib data from
* PoseLib operators which require some existing data to work now use a
poll() which checks for this
* Added back the operator used to make standard actions into ones
usable by PoseLib
* Added a dummy operator for the apply active pose button which really
just calls the same backend functions as "Browse Interactive", but
which has a nicer frontend (naming + description) for the purpose of
being used in this way
* Also, removed some useless code from here

9 years agodoc generation support for excluding some modules, without this a full rebuild takes...
Campbell Barton [Wed, 16 Feb 2011 05:18:10 +0000 (05:18 +0000)]
doc generation support for excluding some modules, without this a full rebuild takes too long to test changes.
also include own function definitions for blf_dir.c.

9 years agofix from mikes for building on apple with gcc 4.2.1
Campbell Barton [Wed, 16 Feb 2011 05:03:33 +0000 (05:03 +0000)]
fix from mikes for building on apple with gcc 4.2.1

9 years agorename IDPropertyGroup to PropertyGroup
Campbell Barton [Wed, 16 Feb 2011 02:51:56 +0000 (02:51 +0000)]
rename IDPropertyGroup to PropertyGroup
also renamed IDProperty to PropertyGroupItem (these are not referenced for common usage and we already have 'Property' defined).

9 years agobugfix [#26094] Going to Bone Roll menu brings up python error
Campbell Barton [Wed, 16 Feb 2011 02:25:03 +0000 (02:25 +0000)]
bugfix [#26094] Going to Bone Roll menu brings up python error
also correct for pep8 warnings.

9 years agoFix for compiler warning: forgot to hook up a poll callback I defined
Joshua Leung [Wed, 16 Feb 2011 02:10:26 +0000 (02:10 +0000)]
Fix for compiler warning: forgot to hook up a poll callback I defined
for unlinking PoseLib data

9 years agoPoseLib UI and Bugfixes:
Joshua Leung [Wed, 16 Feb 2011 02:05:41 +0000 (02:05 +0000)]
PoseLib UI and Bugfixes:
- Added operator button to show the current pose. This runs on top of
the interactive pose browse functionality, so the tooltip may be a bit
- Specifying a pose for the Pose browse functionality to set now works
correctly. Previously, some old depsgraph hacks were actually
interferring with correct updating (only the armature updated
correctly, but deforms didn't occur)
- Fixed a case of accessing freed memory, which I'm surprised no
static checkers have reportedly picked up on yet, or that nobody has
really had issues with (probably due to low memory "turnaround" so

9 years agofix [#26098] python API: quaternion.rotate never seems to work.
Campbell Barton [Wed, 16 Feb 2011 02:05:36 +0000 (02:05 +0000)]
fix [#26098] python API: quaternion.rotate never seems to work.

9 years agoUgly hack to get PoseLib UI working ok (problem mentioned in log for
Joshua Leung [Wed, 16 Feb 2011 01:46:32 +0000 (01:46 +0000)]
Ugly hack to get PoseLib UI working ok (problem mentioned in log for

Full description:
When defining an operator button in the UI layout code, trying to set
the value for such an operator's enum properties, where said enum uses
a dynamically generated list of items (which depends on using context
info), will "fail". No context info will be passed to the callbacks
used to generate this list of items, as PROP_ENUM_NO_CONTEXT is still
set on the operator properties (it seems these will only get cleared
when the operator actually runs, which is far too late already for
this usage) so RNA_property_enum_items() will pass NULL instead of a
context pointer *even* when one exists!

I'm not sure of why we even need this flag. It seems to have caused a
few other rounds of problems already, from quick searches I did on
this matter...

9 years agoBugfix: Browing Pose Libs should work now... RNA wrapping was missing
Joshua Leung [Wed, 16 Feb 2011 00:19:54 +0000 (00:19 +0000)]
Bugfix: Browing Pose Libs should work now... RNA wrapping was missing
an "editable" flag there

9 years agoPose Lib: Start of PoseLib UI in Armature buttons
Joshua Leung [Wed, 16 Feb 2011 00:17:22 +0000 (00:17 +0000)]
Pose Lib: Start of PoseLib UI in Armature buttons

This presents a UI from which PoseLibs can be assigned/removed from
Objects. From here, it is also possible to see the list of poses and
add/remove poses from this list.

Known Issues:
- [Py/RNA/Operators BUG ALERT!] If after immediately starting Blender
you try to remove a pose from the PoseLib using the UI buttons, you'll
get a an error the first time you do so (but not for subsequent
attempts). This seems to be caused by the "pose" enum (dynamically
generated) of the POSELIB_OT_pose_remove operator, which does not seem
to be getting initialised when the operator's exec gets called without
the invoke having been called previously
- Changing the active Pose Library still seems to be broken (to be
fixed soon)

- Operator button to make the selected pose get shown in the 3d view
- Restore the "validate action" operator and add that to this panel
- Rename pose access

9 years agosmall correction to BGE as recent commits broken normal mapping in the GE
Michael Fox [Wed, 16 Feb 2011 00:04:37 +0000 (00:04 +0000)]
small correction to BGE as recent commits broken normal mapping in the GE

9 years agoFix from sparky for compile problem with older GCC
Nathan Letwory [Tue, 15 Feb 2011 19:57:33 +0000 (19:57 +0000)]
Fix from sparky for compile problem with older GCC

9 years agoremoved some more magic constants
Lukas Steiblys [Tue, 15 Feb 2011 19:22:08 +0000 (19:22 +0000)]
removed some more magic constants
another fix: the patch for #25806 was submitted by Riakiotakis Antonis and not by Andrew Wall

9 years ago- Do not use old anchor toggling operator. It used to set brush flags to
Sergey Sharybin [Tue, 15 Feb 2011 19:19:36 +0000 (19:19 +0000)]
- Do not use old anchor toggling operator. It used to set brush flags to
  unawaliable state.
- Also changed dynamic space bar menu, so it now also wouldn't allow to
  set brush stroke flags to unavaliable state.

Also tried to remove use_anchor, use_space, use_restore_mesh and
use_airbrush, so user would be unable to set flags to unavaliable state,
but it was quite difficult for non-sculpt paint modes. They don't support
all of stroke methods, so brush.stroke_method can't be used for them.

Keep this area unchanged for now.

9 years agopatch from IRIE Shinsuke, use systems openjpeg on *nix.
Campbell Barton [Tue, 15 Feb 2011 19:04:51 +0000 (19:04 +0000)]
patch from IRIE Shinsuke, use systems openjpeg on *nix.

9 years agoadded more code comments and removed some magic constants
Lukas Steiblys [Tue, 15 Feb 2011 19:04:00 +0000 (19:04 +0000)]
added more code comments and removed some magic constants

9 years agoa fix for bug #25806
Lukas Steiblys [Tue, 15 Feb 2011 18:36:42 +0000 (18:36 +0000)]
a fix for bug #25806
Thanks Andrew Wall for the report and the patch