blender.git
8 years agoMerged changes in the trunk up to revision 34996.
Tamito Kajiyama [Sat, 19 Feb 2011 23:51:18 +0000 (23:51 +0000)]
Merged changes in the trunk up to revision 34996.

Conflicts resolved:
C:\bf-blender\soc-2008-mxcurioni\doc\python_api\sphinx_doc_gen.py
C:\bf-blender\soc-2008-mxcurioni\source\blender\makesrna\RNA_types.h
C:\bf-blender\soc-2008-mxcurioni\source\blender\render\SConscript

8 years agoBugfix #26150
Ton Roosendaal [Sat, 19 Feb 2011 18:53:08 +0000 (18:53 +0000)]
Bugfix #26150

Crash in hovering over the menu "Pose -> Poselib" sub-items.
NULL context passed on to function and read before the test.

8 years agoTodo item:
Ton Roosendaal [Sat, 19 Feb 2011 17:18:38 +0000 (17:18 +0000)]
Todo item:

Option menus (like Mapping options in texture) now show a tooltip on
the button itself, explaining the selected option.

8 years agoFrom the todo:
Ton Roosendaal [Sat, 19 Feb 2011 16:55:01 +0000 (16:55 +0000)]
From the todo:

New render output option "No Output", which renders without
forcing an editor to show an image. Nice for people who
prefer to setup composites with background image view.

8 years agoBugfix #25967
Ton Roosendaal [Sat, 19 Feb 2011 16:24:14 +0000 (16:24 +0000)]
Bugfix #25967

Shader nodes: option "backface" failed for materials using
full oversampling.

The usage of shi->flippednorm in render code is heavily messed
up... also flipping vertexnormals themselves feels wrong.
Marked it in code with XXX for future fixups.

8 years agoBugfix #26015
Ton Roosendaal [Sat, 19 Feb 2011 14:32:34 +0000 (14:32 +0000)]
Bugfix #26015

A very Bad Bug!

On every draw-object, a function free_old_images() was called which
was freeing "unused" images during renders/bakes

This was a left-over from 2.4x code, missed it altogether.

I'm sure this fix will solve a lot of render crashing... :)

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

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

8 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

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

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

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

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

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

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

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

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

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

8 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-
infinitum).

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.

8 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

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

8 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!

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

8 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!

8 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!

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

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

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

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

8 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

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

8 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

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

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

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

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

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

8 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

8 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

8 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 (:

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

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

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

8 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

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

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

8 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

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

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

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

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

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

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

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

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

8 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?

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

8 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

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

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

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

8 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

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

8 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
timing.

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

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

8 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__.

8 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

8 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()

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

8 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

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

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

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

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

8 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. ;-)

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

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

8 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

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

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

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

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

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

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

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

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

8 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
suffice.

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

8 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

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

8 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

8 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).

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

8 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

8 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
obtuse...
- 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
far)

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

8 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
r34883).

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

8 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

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

Todos:
- 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

8 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