blender-staging.git
9 years agomerge with trunk at r27259 and commit of a patch by anthony jones to fix msvc (though...
Joseph Eagar [Tue, 9 Mar 2010 04:32:40 +0000 (04:32 +0000)]
Merge ... trunk at r27259 and commit of a patch by anthony jones to fix msvc (though further work may be needed because changes made by the merge

9 years agoimplemented select (x-)mirrored. I used a topological approach, which will be later...
Joseph Eagar [Thu, 4 Mar 2010 01:07:26 +0000 (01:07 +0000)]
implemented select (x-)mirrored.  I used a topological approach, which will be later reused in x-mirror editing, weight painting, etc.  also ported select randon, select linked flat faces, and select sharp (as in, surroundined by non-flat faces, not sharp as in the sharp flag) edges, and select non-manifold.  need to merge in recent trunk changes next.

9 years agosmall png include adjustments (ifndef NOPNG ...).
Dalai Felinto [Wed, 3 Mar 2010 19:34:17 +0000 (19:34 +0000)]
small png include adjustments (ifndef NOPNG ...).
* gameplayer is now probably not going to build without PNG turned ON.

To fix that it would be necessary to use #ifndef NOPNG  around the GPC_Canvas::MakeScreenShot.
Since I don't this function it's working in 2.5 yet it's better to wait for that before doing it.

9 years agoselect roots of the hair verts when converting hair into a mesh.
Campbell Barton [Wed, 3 Mar 2010 19:22:02 +0000 (19:22 +0000)]
select roots of the hair verts when converting hair into a mesh.

9 years agofix for CMake compile in windows. ($PNG_INC was needed) - partial revert of commit...
Dalai Felinto [Wed, 3 Mar 2010 19:18:50 +0000 (19:18 +0000)]
fix for CMake compile in windows. ($PNG_INC was needed) - partial revert of commit 27251

9 years ago[#21436] Do not set BASACT to NULL when new base wasn't created in convert_exec
Campbell Barton [Wed, 3 Mar 2010 18:49:26 +0000 (18:49 +0000)]
[#21436] Do not set BASACT to NULL when new base wasn't created in convert_exec
by Sergey Sharybin (nazgul)

(from the patch)
When new base wasn't created in convert_exec() function. BASACT will set to NULL, which is not convenient. For example,
u can't enter edit mode after converting curve to mesh. Now BASACT changes only if base for active object was changed.

9 years agofix for minor errors/warnings
Campbell Barton [Wed, 3 Mar 2010 13:59:57 +0000 (13:59 +0000)]
fix for minor errors/warnings

9 years agofix for more crashes with baked fcurves
Campbell Barton [Wed, 3 Mar 2010 13:20:18 +0000 (13:20 +0000)]
fix for more crashes with baked fcurves

9 years agobaked fcurves would crash on deleting in the graph editor
Campbell Barton [Wed, 3 Mar 2010 12:53:26 +0000 (12:53 +0000)]
baked fcurves would crash on deleting in the graph editor

9 years agomarker/camera select, makes active as well as selecting.
Campbell Barton [Wed, 3 Mar 2010 11:48:03 +0000 (11:48 +0000)]
marker/camera select, makes active as well as selecting.

9 years agobugfix [#21428] Particle number display offset
Campbell Barton [Wed, 3 Mar 2010 11:40:12 +0000 (11:40 +0000)]
bugfix [#21428] Particle number display offset

9 years agoworldspace text locations & made some improvements to string formatting for particle...
Campbell Barton [Wed, 3 Mar 2010 11:23:59 +0000 (11:23 +0000)]
worldspace text locations & made some improvements to string formatting for particle number display.

9 years agoset the context on importing bpy module.
Campbell Barton [Wed, 3 Mar 2010 08:56:48 +0000 (08:56 +0000)]
set the context on importing bpy module.

9 years agomove to make way for external svn addons
Campbell Barton [Wed, 3 Mar 2010 07:34:13 +0000 (07:34 +0000)]
move to make way for external svn addons

9 years agoBGE 2D Filters: filters run per scene now (fix for [#18152]) - it (slightly) breaks...
Dalai Felinto [Wed, 3 Mar 2010 06:38:47 +0000 (06:38 +0000)]
BGE 2D Filters: filters run per scene now (fix for [#18152]) - it (slightly) breaks backward compatibility !!!

Originally we had 2DFilters (m_filtermanager) stored in RenderTools. That way filters were stored globally and were being called once per each scene. This was producing two big problems: (1) performance and (2) flexibility of use.

(1) Performance - To run the filters 2X == 2X slower
(2) flexibility of use - Very often we want the filter in the scene but not in the UI for example.

For those reasons I believe that 2DFilters with multiple scenes was very useless or unpredictable. I hope they work fine now.
To make it work as before (2.4) you can simply recreate the 2dfilter actuators across the scenes.

* * * * *

Imagine that we have:
(a) Main Scene
(b) Overlay Scene

in Main Scene the Z Buffer and RGB will be from the main scene.
in Overlay Scene the Z Buffer will be from the Overlay Scene and the RBG buffer is from both [(a + 2D Filter) + b].

So in pseudo code if we have a,b,c,d,e scenes we have: (2DFilterE(2DFilterD(2DFilterC(2DFilterB(2DFilterA(a) + b) + c) + d) + e)

9 years agoMake object stat consistent with the rest of counters (selected-total).
Guillermo S. Romero [Tue, 2 Mar 2010 22:19:32 +0000 (22:19 +0000)]
Make object stat consistent with the rest of counters (selected-total).

9 years agoSplash for testbuild update...
Ton Roosendaal [Tue, 2 Mar 2010 19:24:20 +0000 (19:24 +0000)]
Splash for testbuild update...

9 years agoBlender internal number upped to 252, so it matches testbuild
Ton Roosendaal [Tue, 2 Mar 2010 18:49:09 +0000 (18:49 +0000)]
Blender internal number upped to 252, so it matches testbuild
number 2.5 alpha 2

9 years agofairly horrid feature so Colin can see at a glance what cameras are enabled for switc...
Campbell Barton [Tue, 2 Mar 2010 17:17:34 +0000 (17:17 +0000)]
fairly horrid feature so Colin can see at a glance what cameras are enabled for switching.
draw timeline text 50% alpha when cameras are disabled.

9 years agoCtrl+RMB on markers selects their cameras too
Campbell Barton [Tue, 2 Mar 2010 16:57:39 +0000 (16:57 +0000)]
Ctrl+RMB on markers selects their cameras too

9 years agoconvert to mesh (Alt+C), was failing in cases when MDef was used. make the mesh from...
Campbell Barton [Tue, 2 Mar 2010 15:33:33 +0000 (15:33 +0000)]
convert to mesh (Alt+C), was failing in cases when MDef was used. make the mesh from the original rather then the copy.

9 years agofix for OBJ exporting Texface images
Campbell Barton [Tue, 2 Mar 2010 14:57:28 +0000 (14:57 +0000)]
fix for OBJ exporting Texface images

9 years agoInfo Header: Non-blocking Info Messages
Joshua Leung [Tue, 2 Mar 2010 11:48:40 +0000 (11:48 +0000)]
Info Header: Non-blocking Info Messages

Reports (i.e. 'info' or 'errors') are now shown in the info header in place of the scene statistics if the last executed operator had some, with this info disappearing again once another operator is run (to show scene statistics again).

For example, this means that info such as the the number of verts merged, or whether a Keying Set successfully inserted keyframes, etc. is now shown again somewhere, and that this is done in a non-blocking manner.

The current implementation is still a bit crude (i.e. lacking fancy polish), but is at least barebones functional. The todos...
* When more than 1 report message is generated by the last operator, there is currently a display of the number of reports. In future, it would be nice to be able to add a button beside this or make the label clickable with appropriate text indicating this (commented out atm) to show popup menu of all the reports...

* There could probably be some kind of coloured backdrop behind the text. Currently using standard box, but that has padding problems, and lacks visual interest.
* Timer based fade out/disappear?

9 years agobugfix for displaying ID properties
Campbell Barton [Tue, 2 Mar 2010 11:35:28 +0000 (11:35 +0000)]
bugfix for displaying ID properties
- fixed memleak from 2.4x with setting arrays from python
- basic support for IDPropertyArrays

 context.object["foo"] = [{"smap": 10}, {"foo": 2}]

9 years agopatch from Sergey Sharybin (nazgul), use buildinfod for the player.
Campbell Barton [Tue, 2 Mar 2010 09:45:12 +0000 (09:45 +0000)]
patch from Sergey Sharybin (nazgul), use buildinfod for the player.

9 years agoReplace the >>why is this here?? comment by some hard-earned experience with the...
Erwin Coumans [Mon, 1 Mar 2010 19:18:56 +0000 (19:18 +0000)]
Replace the >>why is this here?? comment by some hard-earned experience with the .bullet file format (derived from .blend)

9 years agoMSVC projectfiles_vc9:
Andrea Weikert [Mon, 1 Mar 2010 18:34:33 +0000 (18:34 +0000)]
MSVC projectfiles_vc9:
* added file blf.c in BPY_python
* added headers from generic subdir to project

9 years agoFix #21227, #21346 and #21336: image texture wasn't centered correctly
Brecht Van Lommel [Mon, 1 Mar 2010 18:11:09 +0000 (18:11 +0000)]
Fix #21227, #21346 and #21336: image texture wasn't centered correctly
when sculpting and using it from material nodes.

9 years agoallow display lists for dupli objects within a dupli list, significant speedup for...
Campbell Barton [Mon, 1 Mar 2010 17:53:33 +0000 (17:53 +0000)]
allow display lists for dupli objects within a dupli list, significant speedup for duplifaces within dupligroups in one of the durian scenes.

9 years agobugfix [#21405] Error on loading of thumbnails from network renderer [27204]
Campbell Barton [Mon, 1 Mar 2010 12:44:28 +0000 (12:44 +0000)]
bugfix [#21405] Error on loading of thumbnails from network renderer [27204]

9 years agoDelete keyframe API method now takes array_index = -1 to delete keyframes from entire...
Joshua Leung [Mon, 1 Mar 2010 10:43:02 +0000 (10:43 +0000)]
Delete keyframe API method now takes array_index = -1 to delete keyframes from entire arrays, as for insert keyframe.

Enabled the 'keyframe_delete' method for RNA structs.

9 years agoparts of the Python API are unstable, big discalmer in API docs main page, API Docs...
Campbell Barton [Mon, 1 Mar 2010 10:34:54 +0000 (10:34 +0000)]
parts of the Python API are unstable, big discalmer in API docs main page, API Docs title and interactive console banner.

9 years agoMissed a spot when renaming the API functions for adding Keying Set paths
Joshua Leung [Mon, 1 Mar 2010 09:42:39 +0000 (09:42 +0000)]
Missed a spot when renaming the API functions for adding Keying Set paths

Also some indention/whitespace tweaks

9 years agoBugfix #21262: Loading Alpha 0 project crash in Alpha 1
Joshua Leung [Mon, 1 Mar 2010 06:23:59 +0000 (06:23 +0000)]
Bugfix #21262: Loading Alpha 0 project crash in Alpha 1

Old temp-pointers for File Browser instances were not being cleared on file load, resulting in crashes when trying to free temp screen layouts that contained file browser instance data.

9 years agoBugfix #21384: Bone Driven Shapekeys Child Evaluation Problem
Joshua Leung [Mon, 1 Mar 2010 05:19:07 +0000 (05:19 +0000)]
Bugfix #21384: Bone Driven Shapekeys Child Evaluation Problem

Transform channel drivers for bones in 'localspace' was using the wrong matrix when getting the transforms. I had been assuming that pchan->chan_mat always contained only the matrix-ised transform values stored in the pchan (which is true while constraints are being evaluated, but not afterwards).

Changes:
- Added a new function to calculate this matrix instead of directly writing it on the pchan->chan_matrix field.
- Also, made the normalisation of the quaternion values during this process be done on a temp var instead of on the stored value. This was a constant source of confusion in the past, so let's see if we can do without it now :)

Unrelated to this commit, I've also fixed a compiler warning with previous commit that I missed (missing include).

9 years agoBugfix #21398: Renaming sequencer strip disables F-Curves
Joshua Leung [Mon, 1 Mar 2010 02:33:53 +0000 (02:33 +0000)]
Bugfix #21398: Renaming sequencer strip disables F-Curves

Related F-Curves were not being renamed when Sequencer strips were renamed.

9 years agoreplace operator options bl_undo and bl_register with bl_options
Campbell Barton [Mon, 1 Mar 2010 00:03:51 +0000 (00:03 +0000)]
replace operator options bl_undo and bl_register with bl_options
eg.
 bl_options = {'REGISTER', 'UNDO', 'BLOCKING', 'GRAB_POINTER'}

This didnt exist when operators were originally wrapped.

9 years agoremove netrender reference from rigify
Campbell Barton [Sun, 28 Feb 2010 23:25:00 +0000 (23:25 +0000)]
remove netrender reference from rigify

9 years agopatch from Clark Gaebel, use const char * for buildinfo strings, also updated bpy_app.c
Campbell Barton [Sun, 28 Feb 2010 22:48:50 +0000 (22:48 +0000)]
patch from Clark Gaebel, use const char * for buildinfo strings, also updated bpy_app.c

9 years agocomparing Vector(-2, 0, 0) and Vector(2, 0, 0) was returning true, this bug is years...
Campbell Barton [Sun, 28 Feb 2010 19:27:06 +0000 (19:27 +0000)]
comparing Vector(-2, 0, 0) and Vector(2, 0, 0) was returning true, this bug is years old, strange nobody noticed.
use float comparison from the "Ever Faster Float Comparisons" paper, tested with random values as well as random values converted to ints (where this existing code would fail).

9 years agoRevert back debuging code that made drawing transform constraints only work on one...
Martin Poirier [Sun, 28 Feb 2010 17:51:23 +0000 (17:51 +0000)]
Revert back debuging code that made drawing transform constraints only work on one side.

9 years ago[#19918] edit mode with mesh only having edges without faces+face select mode
Martin Poirier [Sun, 28 Feb 2010 17:47:49 +0000 (17:47 +0000)]
[#19918] edit mode with mesh only having edges without faces+face select mode

Make select all operator select mode sensitive (it won't select elements that aren't selectable)

Patch by Sergey Sharybin (nazgul) (slightly modified)

9 years agoupdate for .B.blend
Campbell Barton [Sun, 28 Feb 2010 17:42:05 +0000 (17:42 +0000)]
update for .B.blend
- disable running scripts automatically
- set sequencer image preview
- added a 3D viewport in the python script screen & selected 'Text' in the next editor.
- enable stamp rendertime by default. (stamp its self is disabled)
- set the stamp font size to 12 (was 8, too small)

also set the default font size to 12 for new scenes.

9 years agoremove so-called security patch,
Campbell Barton [Sun, 28 Feb 2010 17:11:42 +0000 (17:11 +0000)]
remove so-called security patch,
this has been used by various projects but needs to be justified since it wont remove paths that also resolve to the CWD, "." for instance.

9 years agomake BGL and BLF modile names lowercase
Campbell Barton [Sun, 28 Feb 2010 14:57:26 +0000 (14:57 +0000)]
make BGL and BLF modile names lowercase

9 years agoexamples for autogenerated docs are now implicit and used when available.
Campbell Barton [Sun, 28 Feb 2010 13:45:08 +0000 (13:45 +0000)]
examples for autogenerated docs are now implicit and used when available.
This means adding the file "bpy.props.py" in the examples dir will automatically be used when generating docs, unused examples give warnings.

9 years agoinclude BLF in automated doc generation
Campbell Barton [Sun, 28 Feb 2010 11:54:48 +0000 (11:54 +0000)]
include BLF in automated doc generation
 http://www.blender.org/documentation/250PythonDoc/BLF.html

9 years agopython BLF module for drawing text, updated template to draw text in the 3D view.
Campbell Barton [Sun, 28 Feb 2010 11:18:54 +0000 (11:18 +0000)]
python BLF module for drawing text, updated template to draw text in the 3D view.

9 years agoPartial Fix: [#21085] Sequencer file selector for movies is strange
Andrea Weikert [Sun, 28 Feb 2010 11:17:55 +0000 (11:17 +0000)]
Partial Fix: [#21085] Sequencer file selector for movies is strange
* joined filename and directory to single rna entry for movie and sound sequence
* PROP_FILENAME was missing in makesrna
* made seq->strip->data->name PROP_FILENAME rather than PROP_FILEPATH for the complete path
* also made seq->strip->data->name read only

Missing still: update of sequence length, start end frame etc..

9 years agosoundfile loading: fix crash with long path to the sound file (was 160 only and unche...
Andrea Weikert [Sun, 28 Feb 2010 11:02:06 +0000 (11:02 +0000)]
soundfile loading: fix crash with long path to the sound file (was 160 only and unchecked)

9 years agoMSVC projectfiles_vc9 maintenance
Andrea Weikert [Sun, 28 Feb 2010 09:46:21 +0000 (09:46 +0000)]
MSVC projectfiles_vc9 maintenance
* added ghost dependency to blenlib
* new file bpy_rna_callback.c in blender/python

9 years ago- template with an example of a modal operator drawing with opengl (draw a line on...
Campbell Barton [Sun, 28 Feb 2010 09:36:02 +0000 (09:36 +0000)]
- template with an example of a modal operator drawing with opengl (draw a line on the screen)
- access to event.mouse_region_x/y
- basic type checking to callback functions (use PyCapsule names)

9 years agoBug in OpenAL backend returning wrong playback position.
Joerg Mueller [Sun, 28 Feb 2010 08:53:08 +0000 (08:53 +0000)]
Bug in OpenAL backend returning wrong playback position.

9 years agoFix for crash in imbuf code under certain circumstances on linux.
Joshua Leung [Sun, 28 Feb 2010 02:17:07 +0000 (02:17 +0000)]
Fix for crash in imbuf code under certain circumstances on linux.

9 years agoFix include path for GHOST include.
Guillermo S. Romero [Sun, 28 Feb 2010 00:48:05 +0000 (00:48 +0000)]
Fix include path for GHOST include.

9 years agobugfix [#21381] Wrong negative separated units
Campbell Barton [Sat, 27 Feb 2010 23:22:10 +0000 (23:22 +0000)]
bugfix [#21381] Wrong negative separated units

9 years agobugfix [#21247] Controls holding numbers are not zeroed when empty string value is...
Campbell Barton [Sat, 27 Feb 2010 22:53:37 +0000 (22:53 +0000)]
bugfix [#21247] Controls holding numbers are not zeroed when empty string value is given to them
- dont import math as math and m, just import all members directly. (from math import *)
- was adding __builtins__ twice to the namespace
- account for unlikely but possibly failier to import math.

9 years agopatch from Andy Braham with some modifications
Campbell Barton [Sat, 27 Feb 2010 22:36:37 +0000 (22:36 +0000)]
patch from Andy Braham with some modifications
extracts zipfiles when installing add-ons

9 years agoNetRender: Use threading mixin for master server. See if it solves latency issues...
Martin Poirier [Sat, 27 Feb 2010 22:07:38 +0000 (22:07 +0000)]
NetRender: Use threading mixin for master server. See if it solves latency issues that some people are having (always keep the stdout log from the master/client/slaves if you are reporting an issue).

9 years agoSystem dependent standard directory retrieval functions update : return const strings...
Damien Plisson [Sat, 27 Feb 2010 17:03:46 +0000 (17:03 +0000)]
System dependent standard directory retrieval functions update : return const strings (as coded in libc) instead of malloc'ed buffers

and plug them into wip BLI_bfile.c to replace the hardcoded paths

9 years agoPatch #21267 by Sergey Sharybin
Ton Roosendaal [Sat, 27 Feb 2010 16:06:33 +0000 (16:06 +0000)]
Patch #21267 by  Sergey Sharybin

His log:
There is a small typo in copy_curve(): there will be serious troubles
if this functions is called for OB_FONT in edit mode (for my cases
it is segmentation fault).
I think we should set editfont to NULL for cloned curves (as it is made
for edit nurb).

This bug was found by trying to edit text with applied Cast modifier
and while I was searching what's wrong, I've found that in
castModifier_deformVerts() DerivedMesh is creating for all objects,
but in castModifier_*_do() derived mesh is used only for OB_MESH
objects. Maybe this place could be optimized a bit by skipping DM
creation for non-meshes?

9 years agofix in commit today using strnlen, which is only available for gcc.
Ton Roosendaal [Sat, 27 Feb 2010 15:39:13 +0000 (15:39 +0000)]
fix in commit today using strnlen, which is only available for gcc.
This adds a BLI_strnlen() to the blenlib.

Patch provided by Sergey Sharybin (nazgul)

9 years agoutility function pyrna_enum_value_from_id for getting the enum from a string and...
Campbell Barton [Sat, 27 Feb 2010 15:28:34 +0000 (15:28 +0000)]
utility function pyrna_enum_value_from_id for getting the enum from a string and raising an error if its invalid.

9 years agostore vars in py operators in the instance rather then the operator classes.
Campbell Barton [Sat, 27 Feb 2010 14:54:45 +0000 (14:54 +0000)]
store vars in py operators in the instance rather then the operator classes.

9 years agohold the python operator instance in the operator, otherwise the handelers need to...
Campbell Barton [Sat, 27 Feb 2010 14:44:46 +0000 (14:44 +0000)]
hold the python operator instance in the operator, otherwise the handelers need to be stored in the operator type or in the module which isnt nice for modal operators.

9 years agopython support for defining region drawing callbacks, while not directly related...
Campbell Barton [Sat, 27 Feb 2010 13:27:06 +0000 (13:27 +0000)]
python support for defining region drawing callbacks, while not directly related to operators, this means python can now make operators that draw in the 3D viewport interactively.
nicer then 2.4x space handelers because you can register draw handelers to draw pre/post 3d space or in pixel space.

9 years agofixes for auto script execution, changing the user preference also updates the global...
Campbell Barton [Sat, 27 Feb 2010 12:34:49 +0000 (12:34 +0000)]
fixes for auto script execution, changing the user preference also updates the global flag.

9 years agowas using wrong global flag for python script disabling in recent commit.
Campbell Barton [Sat, 27 Feb 2010 12:01:10 +0000 (12:01 +0000)]
was using wrong global flag for python script disabling in recent commit.

9 years agoOne more decimal to the lamp distance and energy button... makes fine
Daniel Salazar [Sat, 27 Feb 2010 10:01:20 +0000 (10:01 +0000)]
One more decimal to the lamp distance and energy button... makes fine
tuning nicer

9 years ago* Renaming some Keying Sets API functions to make the terminology more consistent...
Joshua Leung [Sat, 27 Feb 2010 02:03:33 +0000 (02:03 +0000)]
* Renaming some Keying Sets API functions to make the terminology more consistent in the UI
* Fixed bug with hotkeys for adding properties to Keying Sets using the KKEY over the relevant buttons. Was calling the remove callback instead.

9 years agorename flag for auto script execution since scriptlinks are no more.
Campbell Barton [Sat, 27 Feb 2010 01:47:46 +0000 (01:47 +0000)]
rename flag for auto script execution since scriptlinks are no more.

9 years agooption to set the blend file as from a 'Trusted Source' on load.
Campbell Barton [Sat, 27 Feb 2010 01:27:22 +0000 (01:27 +0000)]
option to set the blend file as from a 'Trusted Source' on load.

9 years agobugfix [#20694] Copy Paste to buffer missing in Console editor
Campbell Barton [Fri, 26 Feb 2010 23:56:16 +0000 (23:56 +0000)]
bugfix [#20694] Copy Paste to buffer missing in Console editor
- console selection working
- copy selection to clipboard
- paste selection from clipboard works with multiline paste

word-wrap is still not working with selection drawing.

9 years agoVideoTexture: optional arguments to ImageBuff constructor.
Benoit Bolsee [Fri, 26 Feb 2010 22:14:31 +0000 (22:14 +0000)]
VideoTexture: optional arguments to ImageBuff constructor.

ImageBuff([width,height[,color[,scale]]])

width, height: size of buffer in pixel.
               default: buffer not allocated.
color: initial value of RGB channels. Alpha channel is 255.
       Possible values: 0(black=default) -> 255 (white)
scale: True or False to enable or disable fast scaling
       default: False

This constructors eliminates the need to use the load function
when you just want to initialize the image buffer to black or white.

9 years agoFix for ffmpeg audio rendering being to long.
Joerg Mueller [Fri, 26 Feb 2010 21:08:06 +0000 (21:08 +0000)]
Fix for ffmpeg audio rendering being to long.

9 years agorename extension to addon after discussion with meta-androcto & mindrones
Campbell Barton [Fri, 26 Feb 2010 14:28:29 +0000 (14:28 +0000)]
rename extension to addon after discussion with meta-androcto & mindrones

9 years agorna/py api
Campbell Barton [Fri, 26 Feb 2010 12:28:44 +0000 (12:28 +0000)]
rna/py api
rename image.save() --> image.save_render() because it uses render settings for saving.
added image.save() which is like pressing save in the image view, saving to the images path and removing the dirty flag.

9 years agoAdding back decorator (metaclass registration not in trunk yet)
Martin Poirier [Fri, 26 Feb 2010 12:15:15 +0000 (12:15 +0000)]
Adding back decorator (metaclass registration not in trunk yet)

9 years agoremove rna functions image.get_export_path() and image.get_abs_filename(), filename...
Campbell Barton [Fri, 26 Feb 2010 11:50:59 +0000 (11:50 +0000)]
remove rna functions image.get_export_path() and image.get_abs_filename(), filename functions should not be spesific to images.
rename BKE_get_image_export_path() to BKE_rebase_path() and take a filename arg rather then an image.

obj export file copy was also not working because of a missing import.

9 years agoBugfix #21339: Grease Pencil operator weirdness
Joshua Leung [Fri, 26 Feb 2010 10:01:49 +0000 (10:01 +0000)]
Bugfix #21339: Grease Pencil operator weirdness

Fixed missing listener for Grease Pencil notifiers when drawing.

9 years agouse negate_v3 rather then multiplying a vector by -1.0 (no functional changes)
Campbell Barton [Fri, 26 Feb 2010 09:02:52 +0000 (09:02 +0000)]
use negate_v3 rather then multiplying a vector by -1.0 (no functional changes)

9 years agofix for fly mode restoring non-euler rotations
Campbell Barton [Fri, 26 Feb 2010 08:47:20 +0000 (08:47 +0000)]
fix for fly mode restoring non-euler rotations

9 years agoFew small hair dynamics goodies:
Janne Karhu [Fri, 26 Feb 2010 03:24:21 +0000 (03:24 +0000)]
Few small hair dynamics goodies:
* Effectors now work with hair dynamics.
* Hair dynamics has a new "Collider Friction" parameter that works similarly to internal friction except now all collision objects effect the hair velocity. Useful for quick'n'dirty interaction with objects as the calculations are really fast, but doesn't really take away the need for proper hair-object collisions.

9 years agoNetrender: check if library and image files exist before adding as dependency.
Martin Poirier [Fri, 26 Feb 2010 02:37:31 +0000 (02:37 +0000)]
Netrender: check if library and image files exist before adding as dependency.

9 years ago[#21338] B-Bone display size crash [27127]
Martin Poirier [Fri, 26 Feb 2010 02:33:04 +0000 (02:33 +0000)]
[#21338] B-Bone display size crash [27127]

EditBones pretending to be pose bone when doing bone resize need a valid object pointer.

Tsk, who thought this was a good idea...

9 years agoVideoTexture: fix a bug with AV sync that was causing a loss of sync in case of rewin...
Benoit Bolsee [Thu, 25 Feb 2010 22:12:16 +0000 (22:12 +0000)]
VideoTexture: fix a bug with AV sync that was causing a loss of sync in case of rewind to the begining of the file.

9 years agofix for camera rig that has locking on the camera but not the parent.
Campbell Barton [Thu, 25 Feb 2010 21:20:00 +0000 (21:20 +0000)]
fix for camera rig that has locking on the camera but not the parent.

9 years agoerror in view3d math commit.
Campbell Barton [Thu, 25 Feb 2010 21:10:43 +0000 (21:10 +0000)]
error in view3d math commit.

9 years agosupport for flymode with camera rigs, so the parent most object is actually flying.
Campbell Barton [Thu, 25 Feb 2010 20:40:09 +0000 (20:40 +0000)]
support for flymode with camera rigs, so the parent most object is actually flying.

9 years agouse math functions in view code, no functional changes.
Campbell Barton [Thu, 25 Feb 2010 20:26:38 +0000 (20:26 +0000)]
use math functions in view code, no functional changes.

9 years agosupport for relative file loading and python paths.
Campbell Barton [Thu, 25 Feb 2010 16:08:32 +0000 (16:08 +0000)]
support for relative file loading and python paths.
means you can do...
 blender -P foo.py
where foo is $PWD/foo.py

9 years agoselect parent/child in object mode with [] keys, like pose mode.
Campbell Barton [Thu, 25 Feb 2010 15:41:46 +0000 (15:41 +0000)]
select parent/child in object mode with [] keys, like pose mode.
also needed to extend the RNA api to allow C to set enums without meaningful values.

9 years agofix for warnings, add back pose relax into the pose menu.
Campbell Barton [Thu, 25 Feb 2010 15:10:27 +0000 (15:10 +0000)]
fix for warnings, add back pose relax into the pose menu.

9 years agoAnimViz (Motion Paths + Ghosting) panels are registered so that they will show up...
Joshua Leung [Thu, 25 Feb 2010 12:01:43 +0000 (12:01 +0000)]
AnimViz (Motion Paths + Ghosting) panels are registered so that they will show up in a sensible location in the properties window. Also made these panels collapsed by default.

9 years agoBGE Dome: BlenderPlayer Console arguments: warpdata working now (only with absolute...
Dalai Felinto [Thu, 25 Feb 2010 06:05:56 +0000 (06:05 +0000)]
BGE Dome: BlenderPlayer Console arguments: warpdata working now (only with absolute path)

I forgot to say in the last commit that those arguments are only for the BlenderPlayer.
we can now set external warpdata files.

2Do:
(1) convert relative to absolute paths for warpdata files
(2) investigate weird bug on lack of light in blenderplayer with warpmesh

... [old 2Do]

(3) documentation
(4) preserve scene settings (at least scene->gm.dome) even if you load a new file inside the game (e.g. Yo Frankie loading new levels)

9 years agoAdded a Recovery space in splash so new users don't panic when they
Daniel Salazar [Thu, 25 Feb 2010 03:13:50 +0000 (03:13 +0000)]
Added a Recovery space in splash so new users don't panic when they
loose work (close by mistake or a crash)

9 years agoFix for [#20647] Children from particles on a subsurf mesh don't render correct
Janne Karhu [Thu, 25 Feb 2010 01:57:09 +0000 (01:57 +0000)]
Fix for [#20647] Children from particles on a subsurf mesh don't render correct

9 years agoParticles with "no physics" didn't stick to the emitter like they were supposed to.
Janne Karhu [Thu, 25 Feb 2010 00:03:49 +0000 (00:03 +0000)]
Particles with "no physics" didn't stick to the emitter like they were supposed to.

9 years agoFix for [#19955] 2.5 Particles are calculated wrong when object has any transform...
Janne Karhu [Thu, 25 Feb 2010 00:03:16 +0000 (00:03 +0000)]
Fix for [#19955] 2.5 Particles are calculated wrong when object has any transform animation
* The exact location of particle birth wasn't cached if cache step was greater than 1, so the interpolation from an unborn particle to a living one wasn't accurate at all.
* Although not ideal, the current solution is to copy the birth location to the previous cached frame so it's always exact. This should work properly for memory & disk cache.
* This fix shouldn't cause any problems, but exhaustive tests of caching are difficult so be sure to let me know if there's strange behavior.

9 years agoBGE Dome: Console arguments: angle, tilt, mode and warpdata (not working yet)
Dalai Felinto [Wed, 24 Feb 2010 23:01:49 +0000 (23:01 +0000)]
BGE Dome: Console arguments: angle, tilt, mode and warpdata (not working yet)

2Do:
(1) open external warpdata file
(2) documentation
(3) preserve scene settings (at least scene->gm.dome) even if you load a new file inside the game (e.g. Yo Frankie loading new levels)
otherwise it's a nightmare to update all your files every time you change your projection system. See note.
Maybe SYS_WriteCommandLineInt/Float/String can be used for that. Gotta investigate further.

* Note: an external warpdata file is a must ! Currently every time you need to calibrate your system you have to update the warp file in all your demo files. This is terrible. I'm glad I *now* have a dome near by to test it ;)
* FYI: A recent 'Yo Frankie in a dome' video if you want to see how it works: http://www.vimeo.com/9629626 I'm going to record a better one tomorrow.