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

8 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

8 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

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

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

8 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

8 years agoa fix for bug #25806
Lukas Steiblys [Tue, 15 Feb 2011 18:36:42 +0000 (18:36 +0000)]
a fix for bug #25806
http://projects.blender.org/tracker/index.php?func=detail&aid=25806
Thanks Andrew Wall for the report and the patch

8 years agoCPack packaging support from Dan Eicher, tested to build redhat RPM's, a Mac bundle...
Campbell Barton [Tue, 15 Feb 2011 18:33:05 +0000 (18:33 +0000)]
CPack packaging support from Dan Eicher, tested to build redhat RPM's, a Mac bundle also defined.

8 years agomenu to select an enum from an RNA path:
Campbell Barton [Tue, 15 Feb 2011 18:12:41 +0000 (18:12 +0000)]
menu to select an enum from an RNA path:
eg,
   bpy.ops.wm.context_menu_enum(data_path="scene.tool_settings.vertex_paint.brush.stroke_method")

This saves us defining operators only for menus.

8 years ago- Use the same logic as for BEZIERs when making segment of between
Sergey Sharybin [Tue, 15 Feb 2011 16:37:44 +0000 (16:37 +0000)]
- Use the same logic as for BEZIERs when making segment of between
  first and last NURBS' control points (toggle cyclic flag)
- Show U/V selection menu only for surface objects. There's no
  much logic in asking U/V direction for simple curves.
- Set active spline when two segments were joined.

8 years agoFix #26087: in a curve, can't make segment if Fkey was pressed 2 times before on...
Sergey Sharybin [Tue, 15 Feb 2011 16:09:53 +0000 (16:09 +0000)]
Fix #26087: in a curve, can't make segment if Fkey was pressed 2 times before on a single vertex

- Disallow setting cyclic flag for single-point segment when this lonely
  segment is selected
- Clear cyclic flag for single-pointed segments when finding segments which
  can be merged

8 years agoDoc generator now makes 'bpy.context' api reference.
Campbell Barton [Tue, 15 Feb 2011 15:37:40 +0000 (15:37 +0000)]
Doc generator now makes 'bpy.context' api reference.
http://www.blender.org/documentation/250PythonDoc/bpy.context.html

strings are extracted from blender to ensure all values are included, currently there is no type info so this is stored in the doc generator.

8 years agoFix for [#26083] Animated Particle Textures have no effect
Janne Karhu [Tue, 15 Feb 2011 15:03:49 +0000 (15:03 +0000)]
Fix for [#26083] Animated Particle Textures have no effect
* Duplicating particle settings didn't duplicate texture slots.

8 years agomoving dir strings into global namespace for doc access (coming up)
Campbell Barton [Tue, 15 Feb 2011 14:38:43 +0000 (14:38 +0000)]
moving dir strings into global namespace for doc access (coming up)

8 years ago...and for blenderplayer
Campbell Barton [Tue, 15 Feb 2011 12:43:34 +0000 (12:43 +0000)]
...and for blenderplayer

8 years agofix for building with make on linux from recent new lib.
Campbell Barton [Tue, 15 Feb 2011 12:37:15 +0000 (12:37 +0000)]
fix for building with make on linux from recent new lib.

8 years agoPoseLib: Adding support for custom properties
Joshua Leung [Tue, 15 Feb 2011 11:47:09 +0000 (11:47 +0000)]
PoseLib: Adding support for custom properties

Custom properties are now supported by Pose Library. They will get
saved and restored correctly during previewing and pose adding.

To do this, I've changed PoseLib over from using the "LocRotScale"
Builtin Keying Set to the "Whole Character" one instead. One
consequence of this, is that now entire poses are stored in the Pose
Lib, irrespective of whether you only selected part of a pose to store
(i.e. facial controls only, or hand poses only). If this is enough of
a problem, I'll make a second Keying Set that does take selections
into account, and use that here instead.

8 years agocorrention for bpy.props docstrings.
Campbell Barton [Tue, 15 Feb 2011 11:43:35 +0000 (11:43 +0000)]
corrention for bpy.props docstrings.

8 years agoMove mikktspace code to own library, so it is clear that it is also
Nathan Letwory [Tue, 15 Feb 2011 09:24:35 +0000 (09:24 +0000)]
Move mikktspace code to own library, so it is clear that it is also
intended as a standalone library for use in other applications that
want the same tangent space as Blender.

This also keeps blenkernel clean(er) from extra math functions.

8 years agofix for own error with image info display, also dont draw if the mouse is outside...
Campbell Barton [Tue, 15 Feb 2011 04:06:13 +0000 (04:06 +0000)]
fix for own error with image info display, also dont draw if the mouse is outside the image.

8 years agofix warnings.
Campbell Barton [Tue, 15 Feb 2011 03:20:12 +0000 (03:20 +0000)]
fix warnings.

8 years agoUI Tweaks: Text field in Rename Markers popup now gets focus when the
Joshua Leung [Tue, 15 Feb 2011 01:24:12 +0000 (01:24 +0000)]
UI Tweaks: Text field in Rename Markers popup now gets focus when the
popup appears, saving an extra click

I've separated out the "XXX"-'d event-adding-hack section from the
search-menu code into a separate API function (as recommended there).
This call is used to make sure that textboxes in popups can get
activated by default, to allow typing immediately.

8 years agoCtrl-0 can now be used to just reset a single component of an array to
Joshua Leung [Tue, 15 Feb 2011 00:53:20 +0000 (00:53 +0000)]
Ctrl-0 can now be used to just reset a single component of an array to
its default value instead of resetting the entire array

8 years agoTweak priority so link error on Linux is solved. Reported by Hypercrush on IRC.
Nathan Letwory [Mon, 14 Feb 2011 21:00:49 +0000 (21:00 +0000)]
Tweak priority so link error on Linux is solved. Reported by Hypercrush on IRC.

8 years agomore vars made static
Campbell Barton [Mon, 14 Feb 2011 18:20:10 +0000 (18:20 +0000)]
more vars made static

8 years agoThis commit will switch blender to use tangent space generated within
M.G. Kishalmi [Mon, 14 Feb 2011 18:18:46 +0000 (18:18 +0000)]
This commit will switch blender to use tangent space generated within
the two files mikktspace.h and mikktspace.c. These are standalone files
which can be redistributed into any other application and regenerate the
same tangent spaces. The implementation is independent of the ordering
of faces and the vertex ordering of faces.

8 years agomade most variables which are only used in a single file and not defined in header...
Campbell Barton [Mon, 14 Feb 2011 17:55:27 +0000 (17:55 +0000)]
made most variables which are only used in a single file and not defined in header static for blenlib, blenkernel and editors.

8 years agoFix #26082: Fkey in a curve witch was empty before
Sergey Sharybin [Mon, 14 Feb 2011 17:17:05 +0000 (17:17 +0000)]
Fix #26082: Fkey in a curve witch was empty before

Stupid error in own previous commit to addvert_Nurb -- empty spline
had been added to spline list.

8 years agoBug fix #26021
Ton Roosendaal [Mon, 14 Feb 2011 17:09:02 +0000 (17:09 +0000)]
Bug fix #26021

Very nasty UI code issue: since every button is re-defined on a
redraw, having UI redraws while using a button was not possible.

This was solved long ago by copying over data from previous button.

However, this fails when buttons have callbacks with its own (or
a parent button) pointer.

This bug reporter found crashes in draw-overlap UI mode, this
draws entire UI over for every menu redraws, making previous button
pointers invalid. (for triple buffer, the UI is not redrawn, only
the menus).

In general: all systems falling back to old swapbuffers would have
suffered some instability because of this.

Fix is that now the old button gets lifted out from the previous
list and inserted in the new list. Works fine, but needs some tests!

Also in this commit: TIFF endian switching not needed for 16 bits tiff.

8 years agoPrevious commit to small optimization of sculpting broke smooth and layer
Sergey Sharybin [Mon, 14 Feb 2011 16:54:52 +0000 (16:54 +0000)]
Previous commit to small optimization of sculpting broke smooth and layer
brushes. They aren't using proxies, so deformation wouldn't be propagated
in sculpt_combine_proxies().

So, maye idea of getting rid of "extra" memory allocaiton/disposing was not
such cool due to it lead to such exception ways?

8 years agoFirst modifiers with deformMatrices callback used to be applied twice when
Sergey Sharybin [Mon, 14 Feb 2011 16:06:15 +0000 (16:06 +0000)]
First modifiers with deformMatrices callback used to be applied twice when
building crazytspace. Not sure why this worked.

8 years agocomments for how py-rna calls api new classes. small speedup for StructRNA.__new__...
Campbell Barton [Mon, 14 Feb 2011 11:30:35 +0000 (11:30 +0000)]
comments for how py-rna calls api new classes. small speedup for StructRNA.__new__(...) used for creating new classes and corrected exception type.

8 years agoimprove py/rna exception messages.
Campbell Barton [Mon, 14 Feb 2011 08:14:52 +0000 (08:14 +0000)]
improve py/rna exception messages.