10 years agodoxygen: editor entry
Nathan Letwory [Mon, 21 Feb 2011 07:25:24 +0000 (07:25 +0000)]
doxygen: editor entry

10 years agomove addon utilities into their own module, these were getting mixed between bpy...
Campbell Barton [Mon, 21 Feb 2011 07:07:44 +0000 (07:07 +0000)]
move addon utilities into their own module, these were getting mixed between bpy.utils and space_userpref.

10 years agodoxygen: entry for gpu, modifiers, nodes, python and render
Nathan Letwory [Mon, 21 Feb 2011 06:58:46 +0000 (06:58 +0000)]
doxygen: entry for gpu, modifiers, nodes, python and render

10 years agofix for cmake with last commit.
Campbell Barton [Mon, 21 Feb 2011 05:28:22 +0000 (05:28 +0000)]
fix for cmake with last commit.

10 years agoMove blender version info into BKE_blender.h so we only have the info in one place...
Campbell Barton [Mon, 21 Feb 2011 04:45:47 +0000 (04:45 +0000)]
Move blender version info into BKE_blender.h so we only have the info in one place and so package building scripts can extract it in a more usable way.
this also means we can have a version string like '2.56a-beta' without using buildinfo.

release/VERSION was only used by scons, NSIS installer.

Possibly helps to fix bug [#26062] too.

10 years agomissed updating this when editing registration,
Campbell Barton [Mon, 21 Feb 2011 02:45:13 +0000 (02:45 +0000)]
missed updating this when editing registration,
netrender wasn't registering its RenderEngine subclass.

10 years agobugfix [#26156] Opening .blend files through OS ignores "Load UI" flag
Campbell Barton [Mon, 21 Feb 2011 02:40:48 +0000 (02:40 +0000)]
bugfix [#26156] Opening .blend files through OS ignores "Load UI" flag

10 years agobugfix [#26118] Getting 'Error Totblock' when using sub-properties from a PointerProperty
Campbell Barton [Mon, 21 Feb 2011 02:07:26 +0000 (02:07 +0000)]
bugfix [#26118] Getting 'Error Totblock' when using sub-properties from a PointerProperty
blender wasnt freeing ID-Properties when freeing the material copy.
Checked that this isnt a problem for other preview types - texture/world/lamp.

10 years agobug [#26089] editbone.transfrom() seems to mess up bone roll (by more than float...
Campbell Barton [Mon, 21 Feb 2011 01:29:35 +0000 (01:29 +0000)]
bug [#26089] editbone.transfrom() seems to mess up bone roll (by more than float precision error)
This is intentional behavior but add options not to transform the bones scale & roll.

10 years agofix [#26152] Blender File for Image too Small
Campbell Barton [Mon, 21 Feb 2011 01:02:30 +0000 (01:02 +0000)]
fix [#26152] Blender File for Image too Small
disallow 0% rendersize.

also mark new cmake vars as advanced: RPMBUILD, X11_XF86keysym_INCLUDE_PATH

10 years agoMake sure we can build without the optional new WITH_PYTHON_MODULE option. Looks...
Nathan Letwory [Mon, 21 Feb 2011 00:45:54 +0000 (00:45 +0000)]
Make sure we can build without the optional new WITH_PYTHON_MODULE option. Looks like a #ifndef was meant around the blender_esc implementation.

10 years agoExperimental option to build blender as a python module, rather then blender embeddin...
Campbell Barton [Sun, 20 Feb 2011 23:39:29 +0000 (23:39 +0000)]
Experimental option to build blender as a python module, rather then blender embedding python.
CMake build option WITH_PYTHON_MODULE, will build ./bin/

This allows 'bpy' to be imported from python or other applications/IDE's which embed python, eg:
   python -c "import bpy ; bpy.ops.render.render(write_still=True)"

This runs in background mode and has similar restrictions to running a script:
   blender --background --python

 - install to site-packages with blender scripts
 - add support for imp.reload()

10 years agoRevert r35003. It was just an extra semicolon
Joshua Leung [Sun, 20 Feb 2011 23:21:15 +0000 (23:21 +0000)]
Revert r35003. It was just an extra semicolon

10 years agoFixed compilation bug in r35002: C90 forbids mixed declarations and code. I've change...
Konrad Kleine [Sun, 20 Feb 2011 22:03:49 +0000 (22:03 +0000)]
Fixed compilation bug in r35002: C90 forbids mixed declarations and code. I've changed the order of variable declarations.

10 years agoBugfixes:
Joshua Leung [Sun, 20 Feb 2011 21:32:21 +0000 (21:32 +0000)]
- Fix for crash with Keying Sets when a Keying Set path has no ID-
block to target
- Info window now indicates the types of the reports shown by
colouring their entries if the entries are not selected.

10 years agomisc warnings/fixes
Campbell Barton [Sun, 20 Feb 2011 15:48:01 +0000 (15:48 +0000)]
misc warnings/fixes
- WITH_OPENJPEG wasn't defined for creator.c with CMake.
- remove shadowed/redefined vars.
- remove some unused RNA report args.
- re-arrange IMB_FILE_TYPES so IRIS is not the first format tested, since its not very common test JPEG and PNG first.

10 years agoFix for crash when sculpting on multires object during playback
Sergey Sharybin [Sun, 20 Feb 2011 15:35:01 +0000 (15:35 +0000)]
Fix for crash when sculpting on multires object during playback

- Restored BLI_pbvh_grids_update stuff;
- Marc all nodes as changes in ED_sculpt_modifiers_changed, so
  draw_buffers would be keept correct.

10 years agoAdd XF86keysym.h detection and use to CMake system, for r34983.
Guillermo S. Romero [Sat, 19 Feb 2011 23:51:55 +0000 (23:51 +0000)]
Add XF86keysym.h detection and use to CMake system, for r34983.

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

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

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

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

10 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... :)

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

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

10 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

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

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

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

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

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

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

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

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

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

10 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

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

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

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

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

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

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

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

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

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

10 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

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

10 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

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

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

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

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

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

10 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

10 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

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

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

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

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

10 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

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

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

10 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

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

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

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

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

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

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

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

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

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

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

10 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

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

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

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

10 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

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

10 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

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

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

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

10 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

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

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

10 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

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

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

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

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

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

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

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

10 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

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

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

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

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

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