blender.git
10 years agoreproject operator, use to reproject edited renders back into textures.
Campbell Barton [Fri, 5 Mar 2010 18:19:32 +0000 (18:19 +0000)]
reproject operator, use to reproject edited renders back into textures.
- uses project paint options (UV bleed, normals, culling)
- bicubic interolation from the image
- multithraded

TODO.
project into multiple objects at once.

10 years agoConstructive modifiers for curves and surfaces
Sergey Sharybin [Fri, 5 Mar 2010 16:47:52 +0000 (16:47 +0000)]
Constructive modifiers for curves and surfaces

Used approach with creating DerivedMesh for curves whet they've got such modifiers.

Available modifiers are: array, edge split, mirror, solidify, subsurf.

10 years agoFix #21458: tangent space normal maps didn't work correct in some
Brecht Van Lommel [Fri, 5 Mar 2010 15:36:05 +0000 (15:36 +0000)]
Fix #21458: tangent space normal maps didn't work correct in some
cases due to recent fix to avoid division by zero.

10 years agoFix #21442: RNA mesh texture face layer was giving corrupt data while
Brecht Van Lommel [Fri, 5 Mar 2010 15:16:37 +0000 (15:16 +0000)]
Fix #21442: RNA mesh texture face layer was giving corrupt data while
in edit mode. Accessing this data would require editmesh wrapping, so
for now just don't allowed this to be accessed in edit mode.

10 years agoFix #21374: OS X Makefiles missed optimization flags in 2.5 since at least
Brecht Van Lommel [Fri, 5 Mar 2010 14:29:48 +0000 (14:29 +0000)]
Fix #21374: OS X Makefiles missed optimization flags in 2.5 since at least
two years, got (presumably) commented out for some test and never added back.

10 years agoutility function object_camera_matrix, moved code from RE_SetCamera into this.
Campbell Barton [Fri, 5 Mar 2010 14:06:39 +0000 (14:06 +0000)]
utility function object_camera_matrix, moved code from RE_SetCamera into this.
use for getting the render matrix of a camera (view plane, winmat, clipstart/end) without rendering.

10 years agoremove viewfac from Render struct, its only used locally
Campbell Barton [Fri, 5 Mar 2010 13:00:48 +0000 (13:00 +0000)]
remove viewfac from Render struct, its only used locally

10 years agoBugfix #21434: 'Ghost' for Rotation F-curves was not taking unit conversions into...
Joshua Leung [Fri, 5 Mar 2010 11:35:15 +0000 (11:35 +0000)]
Bugfix #21434: 'Ghost' for Rotation F-curves was not taking unit conversions into account, so the ghost curves were calculated+stored wrong

10 years agoBringing back "Auto Start" option in the Game Menu.
Dalai Felinto [Fri, 5 Mar 2010 10:37:55 +0000 (10:37 +0000)]
Bringing back "Auto Start" option in the Game Menu.
It's (still) not working since the pool in the operator will not allow this operator to run without context.
For the window/area/screen has to be created somewhere (maybe in WM_init_game ).

I have no idea on what should be done to initialize it here, so if anyone knows how to proceed, please help here.
* side note: should we also have it as a command line option?

10 years agore-arrange paint initialization (no functional change)
Campbell Barton [Fri, 5 Mar 2010 10:26:23 +0000 (10:26 +0000)]
re-arrange paint initialization (no functional change)

10 years agominor change to dupli draw looping, no functional changes.
Campbell Barton [Fri, 5 Mar 2010 08:53:16 +0000 (08:53 +0000)]
minor change to dupli draw looping, no functional changes.

10 years agopartial fix for: [#21400] bpy.ops.view3d.game_start() in a startup script (-P) crashe...
Dalai Felinto [Fri, 5 Mar 2010 07:42:46 +0000 (07:42 +0000)]
partial fix for: [#21400] bpy.ops.view3d.game_start() in a startup script (-P) crashes Blender
Creating a proper pool for the game_start() operator. I still want to find a way to force the start of a game from the commandline.

10 years agoPatch #21459: Expose viewmat (in Region3DView) via the py API
Joshua Leung [Fri, 5 Mar 2010 03:16:16 +0000 (03:16 +0000)]
Patch #21459: Expose viewmat (in Region3DView) via the py API
Patch by Martin Burbaum (pontiac), with some changes from me

Added access to the View (from patch) and Perspective (additional change) matrices for 3D Regions in RNA.

Also, made these non editable for now (my change), since although users might need to get these matrices to make it easier to determine any projections that may be needed for funky operator drawing-hacks to be done, there is almost certainly no need for changing those matrices...

10 years agoBugfix #20574: New 3D View regions were all had their 'type' set to 'RGN_TYPE_UI...
Joshua Leung [Fri, 5 Mar 2010 02:43:40 +0000 (02:43 +0000)]
Bugfix #20574: New 3D View regions were all had their 'type' set to 'RGN_TYPE_UI', which meant that the same region contents would get drawn in instances all over, causing quite some confusion.

10 years agoBugfix #21463: Bone driven Shapekey broken in 2.5Alpha2 (for drivers from 2.49b)
Joshua Leung [Fri, 5 Mar 2010 01:29:56 +0000 (01:29 +0000)]
Bugfix #21463: Bone driven Shapekey broken in 2.5Alpha2 (for drivers from 2.49b)

Animation conversion needed to make transform channel driver vars (for bones) to be in local space, since that's what the old code did (albeit in a slightly more roundabout way).

10 years agoBugfix #21215: Panning Properties header shows unnecessary space.
Joshua Leung [Fri, 5 Mar 2010 01:18:12 +0000 (01:18 +0000)]
Bugfix #21215: Panning Properties header shows unnecessary space.

There was an additional 'magic number' offset for the header width, from the days when there was the frame number and subtabs in the header.

--

Removed an obsolete and commented out line.

10 years agousing displist with dupli objects logic was flawed, it would only try and use a displ...
Campbell Barton [Thu, 4 Mar 2010 15:58:27 +0000 (15:58 +0000)]
using displist with dupli objects logic was flawed, it would only try and use a displist with a new object if the previous one worked with a displist.
rather then this, if the object changes, re-test if a displist is possible.
also check if the next object matches before making a displist else there is no point since it will be freed right after.

10 years agominor fix to dupli drawing, compare with the previous drawn object (not the last...
Campbell Barton [Thu, 4 Mar 2010 14:59:20 +0000 (14:59 +0000)]
minor fix to dupli drawing, compare with the previous drawn object (not the last object which may not have been drawn)

10 years agoeffector shape names: old/new --> point/plane
Campbell Barton [Thu, 4 Mar 2010 11:17:13 +0000 (11:17 +0000)]
effector shape names: old/new --> point/plane

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

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

10 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

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

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

10 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

10 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

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

10 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

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

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

10 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

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

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

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

10 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

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

10 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

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

10 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

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

10 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}]

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

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

10 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

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

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

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

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

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

10 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

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

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

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

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

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

10 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

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

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

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

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

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

10 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

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

10 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

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

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

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

10 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

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

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

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

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

10 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

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

10 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

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

10 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

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

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

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

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

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

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

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

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

10 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

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

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

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

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

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

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

10 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

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

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

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

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

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

10 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

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