Commit Graph

21741 Commits

Author SHA1 Message Date
Campbell Barton
8177a765ab jp2.c has a non-utf8 char which stopped python from reading it, removed unused vars from CMP_chromaMatte.c 2010-08-16 06:38:30 +00:00
Campbell Barton
d1759639dc - remove unused includes IMB_*, BIF_* & MEM_*
- remove MEM_guardedalloc.h from header files (include directly)
2010-08-16 05:46:10 +00:00
Robert Holcomb
e9683f4b26 Fixed bug in normalition of YCbCr color space conversion (from 0..1 to
-1..1) to fix errors in keying.  Simplified chroma key to not take
despill into consideration (handled elsewhere).  Simplified user
interface for pieces not used.
2010-08-15 22:08:49 +00:00
Campbell Barton
e2a6a0b377 change for sorting rna cleaner (was broken), diff's on rna_properties.txt will stop being so big now. 2010-08-15 16:50:58 +00:00
Campbell Barton
3a34d669e1 remove foreach_get/set for rna arrays, was crashing and are only valid for collections. 2010-08-15 16:06:26 +00:00
Campbell Barton
728b713d86 use more BLI math functions. 2010-08-15 15:14:08 +00:00
Campbell Barton
310cc16fd6 more rna naming edits 2010-08-15 12:32:37 +00:00
Campbell Barton
0e7d0cfe2a [#23266] bpy.ops.poselib.browse_interactive - blend_factor argument does nothing
commenting 'blend_factor' for now, its not used.

COLOR and EULER internal pyrna subtypes were causing color type variables to try update euler rotation order.
2010-08-15 12:03:49 +00:00
Brecht Van Lommel
60a8fc3759 Fix #23303: glsl color correction not working correct for image textures. 2010-08-15 09:34:18 +00:00
Brecht Van Lommel
dd9ce7ba04 Fix #23307: accessing FluidParticles.settings causes crash. 2010-08-15 08:53:28 +00:00
Martin Poirier
4959f424b8 [#22831] transform problem with hidden parent object
Partial fix. It now checks if selected parents are modifiable (due to the look up for base, this could get slow, but no other good way to do it).
2010-08-14 17:11:10 +00:00
Campbell Barton
04f619d8af - PyLineSpit() - used to print the filename and line number for internal errors now works when executing class functions in a module.
- replaced PySys_GetObject("modules") with PyImport_GetModuleDict()
- use defaults for keymap import/export rather then setting the same value every time from the UI scripts.
2010-08-14 05:33:20 +00:00
Campbell Barton
5e4ab9fa31 fix for referencing freed memory when freeing an rna property. 2010-08-13 21:49:31 +00:00
Campbell Barton
32792a58e3 bugfix [#22037] OBJ exporter produce wrong UV 2010-08-13 16:59:11 +00:00
Campbell Barton
e12a146a42 bugfix [#22845] Python operators dont free report list 2010-08-13 16:34:21 +00:00
Campbell Barton
96b138d98b added include for offsetof(), also use <string.h>, not "string.h" 2010-08-13 15:26:37 +00:00
Campbell Barton
8e6c654294 [#22884] slow import wavefont/.obj file
- dont run mesh update functions on zero user meshes (a bit of a cheap trick but works well), made in last commit by mistake.
- dont do a scenegraph update on linking an object, run scene.update() after linking objects.
- remove split material option since we have enough slots.
2010-08-13 15:07:57 +00:00
Campbell Barton
f35efbc95a - remove WM_operatortype_exists since its almost the same as WM_operatortype_find
- hopefully fix reported problem with MSVC.
2010-08-13 14:42:45 +00:00
Brecht Van Lommel
ab56b4b5b9 2.5: rendering thread-safety experiment, when setting G.rt to 101, it will
render from a Main database created from the undo buffer. That means extra
memory usage and processing needed, but gives no interference with other
data.

Still won't work entirely since there are a few things that don't get
flushed always (editmode, sculpt, ..) and some places that use globals.
2010-08-13 14:29:56 +00:00
Brecht Van Lommel
0738ae7688 2.5: more removal of G.main. 2010-08-13 14:23:44 +00:00
Joerg Mueller
47d38dbd20 svn merge -r 31211:31313 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2010-08-13 10:50:29 +00:00
Brecht Van Lommel
9ce2086506 Fix #23111: file Output node not working when inside a group. 2010-08-13 10:20:40 +00:00
Brecht Van Lommel
9f4ec50a9a Fix #23244: image save function did not release lock on render
result, causing freeze later.
2010-08-13 09:47:14 +00:00
Campbell Barton
bf52b68dcd minor changes to rna/python.
- raise an exception when python calls is_property_set(name) or is_property_hidden(name) and the property does not exist.
- added BLI_findstring_ptr(), which finds a named item in a listbase where that name is a pointer to a string.
- replaced inline for loops with calls to BLI_findstring_ptr() and IDP_GetPropertyFromGroup().
2010-08-13 06:30:04 +00:00
Dalai Felinto
6317a0006b Fix for [#23286] Text Editor: Cursor not changing shape when insert key is pressed. Patch by Justin Dailey (dail) 2010-08-12 20:42:06 +00:00
Brecht Van Lommel
6faa930369 Fix #23219: smooth view rotating in top view could generate NaN-values,
causing 3d view drawing to break.
2010-08-12 17:48:25 +00:00
Brecht Van Lommel
7019de5e30 Fix #23098: crash in baking, it did a call to BLI_end_threads too much,
causing problems with thread safe malloc after baking once.
2010-08-12 17:13:47 +00:00
Brecht Van Lommel
5fa95f6928 Fix #22777: duplifaces don't take deforming modifiers into account
while in edit mode.
2010-08-12 16:46:03 +00:00
Campbell Barton
9f01264610 bugfix: deleting NLA tracks with a keyframed text3d obdata would free the curve, missing type checks. 2010-08-12 16:39:23 +00:00
Campbell Barton
7c8f1eb04e text editor bugfix, selecting & moving the cursor on lines >256 chars long (was reallocing too little memory). 2010-08-12 15:26:23 +00:00
Brecht Van Lommel
26f0f25c5a Fix #23188: libpng error: Image width or height is zero in IHDR.
The file thumbnail generator would write 0x0 size png's to the .thumbnails/fail
folder. However libpng throws an error when doing this. Instead we now write 1x1
png's, which nautilus seems to be doing as well. The content shouldn't matter
anyway since we won't use it.
2010-08-12 15:15:02 +00:00
Campbell Barton
47f319eb6e text editor, only draw line highlight when its in the view. 2010-08-12 14:49:08 +00:00
Brecht Van Lommel
e81df3a6fa Fix #23238: crash rendering multiple scenes from compositor. 2010-08-12 13:58:10 +00:00
Brecht Van Lommel
150eb890df Fix #23258: paint cursor not working in sculpt/paint modes. 2010-08-12 11:09:19 +00:00
Brecht Van Lommel
982c4c87f7 Fix #23281: crash with multiresolution and uv project. 2010-08-12 10:35:34 +00:00
Brecht Van Lommel
fd0a02ef1b Fix #23235: crash with editmesh instances & drawing, only the object
in object mode should make the editmesh derivedmesh.
2010-08-12 10:17:21 +00:00
Joshua Leung
e2826f379d Small UI Tweak: Added NumPad-0 as additional hotkey for Reset to Default Values. Previously, only ZeroKey (i.e. 0 on top row) was used, which was not very convenient to hit) 2010-08-12 09:50:04 +00:00
Campbell Barton
cf84992cb4 patch [#23280] Generated suffixes of strip names contain random character (revision 31262)
from Torsten Rupp (rupp)
2010-08-12 09:35:39 +00:00
Campbell Barton
6be46efe6c fix for the rna curve interpolation enum, 'ease' was using the same value as Bezier. 2010-08-12 06:28:46 +00:00
Campbell Barton
6827ac7e0d bugfix [#23263] Changing view crashes blender 2010-08-12 03:37:45 +00:00
Campbell Barton
ac133d5d26 bugfix [#23270] Long directory name segmentation fault in File brower
file->relname was being edited when its length allocated at the size of the original name, realloc'ing failed because the old string was still used by a button.
2010-08-12 00:14:32 +00:00
Campbell Barton
aae5c9b58d - possibly bugfix /w uninitialized vars [#23270] Long directory name segmentation fault in File brower.
- in exceptional cases vertcos_to_key() could return with KeyBlock pointing to freed memory.
- invalid use of realloc() in BLI_builddir()
2010-08-11 22:36:43 +00:00
Dalai Felinto
350e6d22fd Logic UI: name mismatch on motion blur property (report and patch by Jacob F.)
I forgot to update the UI code (or to commit) when I changed the rna name to match docs. (0 to 1 values should be called factor)
2010-08-11 21:51:31 +00:00
Tom Musgrove
4694914a8f bad level call fixes so the blenderplayer compiles again 2010-08-11 20:33:02 +00:00
Campbell Barton
6cae52bca2 add support for documenting class methods 2010-08-11 17:13:39 +00:00
Campbell Barton
556b615cf8 mathutils module methods only contained matrix constructors, move these to matrix class methods since this is acceptable in python. eg: dict.fromkeys() and groups them more logically.
mathutils.RotationMatrix -> mathutils.Matrix.Rotation
 mathutils.ScaleMatrix -> mathutils.Matrix.Scale
 mathutils.ShearMatrix -> mathutils.Matrix.Shear
 mathutils.TranslationMatrix -> mathutils.Matrix.Translation
 mathutils.OrthoProjectionMatrix -> mathutils.Matrix.OrthoProjection
2010-08-11 16:40:36 +00:00
Campbell Barton
ab8ccaa709 python declarative UI
- remove XML testing feature
- add 2 modules: bpyml - generic, bpyml_ui - blender spesific. nothing uses these now.

==bpyml_ui module==
defines BPyML_BaseUI and its draw() function which uses the bpyml member of the class instance self.draw_data & self.draw_header_data.

This way declarative ui is opt-in and easy to use by using BPyML_BaseUI as a mix-in class.

==bpyml module==

This module translates a python like XML representation into XML
or simple python blender/ui function calls.

    sometag(arg=10) [
        another(),
        another(key="value")
    ]

# converts into ...

    <sometag arg="10">
        <another/>
        <another key="value" />
    </sometag>
2010-08-11 15:11:30 +00:00
Joerg Mueller
fd2a9a0ed0 Blender Py API: GameLogic -> bge.logic 2010-08-11 12:14:16 +00:00
Joerg Mueller
d48991c6c6 Blender Py API: Implemented missing KX_PYATTRIBUTE_TODOs and -DUMMYs. 2010-08-11 10:36:16 +00:00
Campbell Barton
d739a1788d small edits to text editor from writing a python editor extension.
- rename TextLine.line -> body, ConsoleLine.line -> body
- minor speedups when setting the body text, also re-allocate console lines if they are < half the length.
- added option to highlight current line in the text editor.
2010-08-11 05:21:43 +00:00
Campbell Barton
8c39326962 bugfix [#23247] Load Image in Textures does not use a usefull path 2010-08-11 03:31:56 +00:00
Matt Ebb
c4f1c0fda1 Fix silly bug with color ramp ui where there was an extra pixel
of background on the right side
2010-08-11 02:31:54 +00:00
Campbell Barton
4ed342567e correction for mis-named DupliObject.object_matrix -> matrix_original 2010-08-11 02:13:34 +00:00
Guillermo S. Romero
95aa8cfa4a Update address in license block. 2010-08-10 21:22:26 +00:00
Guillermo S. Romero
e87552d3e8 SVN maintenance. 2010-08-10 20:33:15 +00:00
Campbell Barton
76b17eaac5 repr() functions for the python api, this means it can print 'bpy.data.objects[foo].modifiers' from the objects modifiers, uses the same function thats used to make the animation path. 2010-08-10 15:46:16 +00:00
Campbell Barton
ad4fc20ec9 moved idcode functions into their own file (was added as a todo in the comments), these were mixed in with file reading code - BLO_readfile.h bot these functions are not spesific to reading. 2010-08-10 15:14:19 +00:00
Daniel Genrich
f483834f13 Smoke:
- Fixing UI glitch so that range and UI range now matches
- Increased max to 400 secs (at 25 FPS) to allow more artistic freedom
2010-08-10 13:06:45 +00:00
Joerg Mueller
4eadcdc389 Fix for [#22924] KX_PolygonMaterial.diffuse does not return expected list[r,g,b] 2010-08-10 10:26:25 +00:00
Joerg Mueller
46cac18815 svn merge -r 31145:31210 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2010-08-10 09:47:57 +00:00
Sergey Sharybin
c0e39df6ac - Enable shape key switching in edit mode for curves, surfaces and latticies
- Disable changing of lattice size if there are shape keys
2010-08-10 06:36:42 +00:00
Campbell Barton
41531e4fb6 include rna parent class names in renaming list 2010-08-10 06:27:29 +00:00
Campbell Barton
15669532a2 header re-shuffle, some headers contained unneeded refereces to other headers, better include inline with the C files that need them 2010-08-10 05:41:51 +00:00
Matt Ebb
b525dfb298 Added additional (optional) subframe argument to RNA API function: scene.set_frame()
This is used to set the current frame to a floating point subframe state between 0.0 and 1.0
added to the integer frame. A main usage for this is retrieving geometry at sub-frame
intervals for use in multi-segment motion blur:

http://mke3.net/projects/3Delight_blender/renders/multisegment_blur.mov

Example:
scene.set_frame(5)
or
scene.set_frame(5, 0.25)
2010-08-10 03:28:06 +00:00
Dalai Felinto
73f1d88be2 Bugfix for:[23234] Blender File Browser - Back Button does work with first directory entered?
For !WIN32 systems the fix was in ED_fileselect_set_params
(basically adding the first folder in the sfile->folders_prev list)

For WIN32:
I talked with Nathan (Jesterking) and he agreed that the fix in path_util.c was required too. Without that BLI_path_abs was always making WIN32 paths ending with \ to end with \\
(e.g. C:\Blender\ --> C:\Blender\\)
And this was making the folder to fail ISDIR tests.
2010-08-09 22:54:40 +00:00
Guillermo S. Romero
825f0593e0 SVN maintenance. 2010-08-09 20:14:33 +00:00
Arystanbek Dyussenov
f9acf1b455 Fix bug #22828, "Exporting as COLLADA crashes Blender". 2010-08-09 18:15:50 +00:00
Campbell Barton
a8ce419257 rna refactoring update, order by class, attribute. 2010-08-09 10:22:09 +00:00
Campbell Barton
66cbb0d973 restrict prefix checking to booleans for now 2010-08-09 07:05:37 +00:00
Campbell Barton
8d517cff33 rna refactor...
- added a script to merge 2 lists of rna renaming from/to
- merged rna_booleans.txt into rna_properties.txt
- made rna_cleaner.py sort by class.from by default.
2010-08-09 06:55:20 +00:00
Campbell Barton
9581cf1bdd python draw callback
- optional argument for the drawing mode crashed when not set
- added a check for the call fuinction being callable
- added a check for the argument being a typle.
2010-08-09 02:29:06 +00:00
Campbell Barton
a6f13f9d7b poll() as a python '@staticmethod' was too limiting and didnt allow useful base class poll functions in many cases.
now rna functions that dont have a 'self' are automatically assumed '@classmethods'.

de-duplicated poll functions and made some minor tweaks too.
2010-08-09 01:37:09 +00:00
Campbell Barton
7fcbbad5a4 remove py2.x compat check for class registration. 2010-08-08 23:46:49 +00:00
Peter Schlaile
a773d8836f Bugfix: [#23149] Showing cache instead of rendering with the VSE 2010-08-08 16:47:58 +00:00
Luca Bonavita
9fe2b252c4 == docs ==
Changing " **type** " into "\n\n:type: " in Mathutils, to have like "type: float" in its own line.
2010-08-08 16:22:29 +00:00
Peter Schlaile
f46a649965 This fixes:
[#20884] SEQUENCER EFFECT: Animating Speed Control Opacity has no effect
[#21308] SEQUENCER EFFECT: Glow ignores Opacity setting
2010-08-08 14:21:20 +00:00
Peter Schlaile
0c54337755 == Sequencer ==
This fixes: [#23184] Problems with speed control effect strip in the 
video sequence editor

Also: got rid of tstripdata caches in DNA.

Fixes some potential crashes in SEQ_IMAGE rendering (s_elem wasn't 
checked for NULL).
2010-08-08 13:55:30 +00:00
Campbell Barton
9db1f87531 remove unused includes 2010-08-08 13:11:13 +00:00
Campbell Barton
5c75d6fa98 remove unused includes 2010-08-08 13:06:31 +00:00
Campbell Barton
3e58edda3a remove unused includes 2010-08-08 13:03:07 +00:00
Campbell Barton
8c455e1da8 remove unused includes 2010-08-08 08:33:47 +00:00
Campbell Barton
f2d77e4496 remove unused includes from editors/space_* 2010-08-08 08:14:07 +00:00
Luca Bonavita
9566b031a3 == docs ==
Added some docs mainly in bpy.types.UILayout.html, descriptions by Florian Meyer (testscreenings), thanks.
2010-08-07 18:34:16 +00:00
Joerg Mueller
64b36ffbb3 svn merge -r 31060:31144 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2010-08-07 15:45:07 +00:00
Joshua Leung
2b3c8bdc27 Bugfix #23216: Memory leak when removing Fcurve from action
Missing call to free_fcurve()
2010-08-07 10:18:59 +00:00
Campbell Barton
c688dc05ca bugfix [#23211] "with" keyword in text editor not highlighted [Patch attatched
by Justin Dailey (dail) with minor edit
2010-08-07 02:13:39 +00:00
Tom Musgrove
dc3c979ac8 after discussion with brecht reverting this commit, will pass on feedback to the patch author 2010-08-06 18:40:05 +00:00
Brecht Van Lommel
8c40bda539 Fix #23210: displace modifier strength only had 2 decimal places,
was inconsistent.
2010-08-06 18:14:52 +00:00
Brecht Van Lommel
fe0a7ea7a5 Fix #23208: REGION_DRAW_POST_PIXEL callbacks only work in 3d view and
image editor, but there's no reason they wouldn't work in all regions,
so moved the function call.
2010-08-06 18:11:49 +00:00
Brecht Van Lommel
7b6e895c11 Fix #23209: there was no access yet to region data from RNA, there's no
generic system for it yet, but for now already return it for the 3D view
since that is the only space that uses it.
2010-08-06 17:54:02 +00:00
Tom Musgrove
8c80f623f4 Committing Konrads GLSL preview of bumpmapping, now we no longer have the bizarre situation of being able to view the changes of the normal map but not of regular bump mapping 2010-08-06 17:42:47 +00:00
Brecht Van Lommel
8d2e59e659 Fix #22961: linked duplicate meshes are all displayed in edit mode when
one of them is in edit mode. This doesn't give correct results for modifiers
though, there was already a check to disable this when are shape keys, so
now it is also disabled if either of the meshes has modifiers.
2010-08-06 17:41:45 +00:00
Brecht Van Lommel
6d5043a529 Fix a duplicate memory free in fluid export code, as part of bug #22734. 2010-08-06 17:35:07 +00:00
Brecht Van Lommel
5784b95823 Fix #23167: halo "texture" option did not take disabling of the texture
into account.
2010-08-06 16:59:19 +00:00
Brecht Van Lommel
6405342d9e Fix #23196: running python scripts didn't do an undo push. Now it does
means you can easily undo what the script did, and keeps the undo stack
up to date. Maybe sometimes it's not necessary, but I think it's
reasonable to do this always.
2010-08-06 16:33:36 +00:00
Brecht Van Lommel
463c3b5cf7 Fix #23204: render disconnected hair with child particles could crash. 2010-08-06 15:31:35 +00:00
Campbell Barton
acca04bf33 remove narrow ui feature
- re-arranged UI in a way that gave far too much vert scrolling.
- was added all over for simple things like making text="", layout engine should handle this.
- Ton and Brecht are ok with removing this now. Ton would like to work on the layout engine to make it better support these cases.
2010-08-06 15:17:44 +00:00
Brecht Van Lommel
964b09f26e Fix for silly mistake in overlap draw mode code, still drawing too much. 2010-08-06 14:25:35 +00:00
Joerg Mueller
0a796a465e Py API: Renaming _owner attribute of mathutils classes to owner. 2010-08-06 13:36:09 +00:00
Campbell Barton
a8129f6b41 fix for fake python bge.* module, this is really nasty temp py code! (not a good example) 2010-08-06 12:46:22 +00:00
Joerg Mueller
640e7b545e Py API Documentation:
* Fix some minor errors my script found in mathutils and blf.
* Fixing optional parameters with default values in aud.
2010-08-06 08:48:40 +00:00
Campbell Barton
14fe11bd81 bugfix [#19525] Curve modifier moves mesh geometry first
more of a request then a bug but shows up a strange limitation with curve deform modifier,
The mesh bounding box would set the deform axis start/end to map the deformation of the curve to. This means it ignored offset in the object location and object data location (you could use a dummy vertex to trick it).

Old files wont change, added an option (next to stretch), called 'Bounds Clamp', old files have this behavior but newly made curves have it disabled.
Double checked this gives useful results with stretch on/off and negative axis.
2010-08-06 08:27:07 +00:00
Campbell Barton
6820d13511 Minor cleanup to lattice.c while looking into [#19525] Curve modifier moves mesh geometry first
A subtle change with the curve deform modifier is when a vgroup is used: the mesh bounds were being calculated based on the verts in the group (ignoring their weight).
Now ignore verts weighted at 0.
2010-08-06 05:19:00 +00:00
Campbell Barton
99c64e05a6 bugfix/functionality fix [#21752] 3D cursor vanished and does not come back
Setting the 3d cursor in perspective mode would keep the cursor behind the viewport,
now check if the cursor is begind the viewport and use the orbit location to set the cursor depth rather then the existing plane.
2010-08-06 03:52:13 +00:00
Campbell Barton
30d180ff0d bugfix [#23194] export UVs miss the extension file
also made all other exporters do this.

Made some internal changes.
- moved path functions from bpy.utils to bpy.path (similar to os.path)
- added functions...
  bpy.path.ensure_ext(path, ".ext", case_sensitive=False) # simple function to ensure the extension is set.
  bpy.path.resolve_ncase(path) # useful for importing scenes made on windows where the path case doesnt match the files.
2010-08-06 01:40:54 +00:00
Campbell Barton
46d88bb803 fix for un-initialized variable in screw modifier. 2010-08-06 00:13:44 +00:00
Campbell Barton
deddb90a41 bugfix [#23179] Screw Modifier looses VGroups
- flip option now flips faces rather then flipping loop order. Now it can copy vertex data in chunks the size of the original vertex count.
- converted macro's to static func's and some general cleanup.
2010-08-05 23:40:21 +00:00
Campbell Barton
163f6055d2 bugfix [#23182] Using self.report() inside poll() gives crash
poll() function is now a static method in python, this is more correct, matching C where the operator is not created to run poll.


    def poll(self, context): ...

is now...

    @staticmethod
    def poll(context): ...

Pythons way of doing static methods is a bit odd but cant be helped :|

This does make subclassing poll functions with COMPAT_ENGINES break, so had to modify quite a few scripts for this.
2010-08-05 16:05:30 +00:00
Campbell Barton
8c75853bb6 bugfix [#23164] Copied Scene Nodes!
copying a scene would still have nodes point back to the old scene which would crash (in some cases) or break rendering.
2010-08-05 10:50:38 +00:00
Sergey Sharybin
5f77852a47 Do not reset bevel/taper object when they've got incorrect type - just do
noting in makebevelcurve and calc_taper functions if type is not curve.

This avoids DNA changing depended on object recalc.
2010-08-05 08:39:25 +00:00
Joerg Mueller
06d2dc86a1 svn merge -r 30954:31059 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2010-08-05 08:23:26 +00:00
Campbell Barton
a0cece42c6 bugfix [#23148] "ImportError: __import__ not found" on changing Render FPS
The BGE was getting the namespace dict directly from __main__ which conflicts
with my recent fix to get the pickle module working which to overwrote the __main__ module on script execution.

Simple fix is to have the BGE and Blender use the same method of getting namespaces.
Renamed CreateGlobalDictionary() to bpy_namespace_dict_new() and moved into bpy_internal_import.c

pickle still wont work in the BGE since we make a copy of __main__ namespace but for speed would rather not have to replace the __main__ module many times per second.
2010-08-05 03:25:45 +00:00
Campbell Barton
db5a5c131c patch [#23185] Mark All in Text Editor always reports "Text not found" when wrap is off 2010-08-05 01:46:34 +00:00
Nathan Letwory
5453e2c2fe Add BF_BUILDINFO support to Python API too.
reported by dail in IRC #blendercoders.
2010-08-04 17:23:13 +00:00
Luca Bonavita
cb98fd289d == docs ==
Started some api documentation, hopefully these pages are now a bit more clear:
- http://www.blender.org/documentation/250PythonDoc/bpy.types.Panel.html
- http://www.blender.org/documentation/250PythonDoc/bpy.types.Menu.html
- http://www.blender.org/documentation/250PythonDoc/bpy.types.Header.html
2010-08-04 16:57:24 +00:00
Brecht Van Lommel
0990e3a9a6 Fix #23003: setting particle number to 0 was not working correct,
committing patch #23119 by Jeroen Bakker to fix this, thanks!
2010-08-04 16:14:03 +00:00
Brecht Van Lommel
27a0b9bef3 Fix #23099: cmake/mac did not copy the scripts/ directory correct for install. 2010-08-04 16:05:19 +00:00
Brecht Van Lommel
3840b0c206 Fix #22869: procedural compositing buffers from texture nodes were not restored
correct between localize/merge, bugfix for #21727 only did it one way.
2010-08-04 15:51:52 +00:00
Campbell Barton
3d0cf3acf1 updated brush options from last commit so they are filtered correctly (sculpt brushes only available in sculpt mode) 2010-08-04 12:51:32 +00:00
Campbell Barton
1f77f7b05a Brush/Paint internal changes
- remove brush array for each Paint struct, just use a single brush pointer.
- removed rna function based template filtering.
- filter brushes using a flag on the brush and the pointer poll function.
- set the brushes using a new operator WM_OT_context_set_id().

TODO
- remake startup.blend, currently brush groupings are lost.
- rewrite WM_OT_context_set_id() to use rna introspection.
2010-08-04 12:18:07 +00:00
Stefan Gartner
2f8f86e4f6 fix path to release/python.zip for scons and cmake
I hope this doesn't break anything
2010-08-04 11:07:14 +00:00
Brecht Van Lommel
247fbfaf03 Fix crash accessing particle edit values outside of particle edit mode. 2010-08-04 09:20:59 +00:00
Brecht Van Lommel
7a55728b40 Fix crash in point cache baking due to my recent changes. 2010-08-04 08:58:38 +00:00
Stefan Gartner
d50cc7826f == Makefiles ==
* add support for LCMS (disabled by default, set WITH_LCMS to true to enable it)
 * fixed typo that prevented TIFF support to be properly enabled
 * enable ray optimization by default (scons and cmake already did this)
 * fixed building with libsndfile on darwin (disabled by default)
 * quicktime: use audaspace headers from $(NAN_AUDASPACE)/include instead of intern
 * gameengine: add -DWITH_FFMPEG to compiler flags when building with ffmpeg support
2010-08-04 08:42:18 +00:00
Campbell Barton
708ef64663 include cleanup, no functional changes
- removed DNA_brush_types.h from DNA_scene_types.h (and some other similar cases)
- removed DNA_wave_types.h (never used)
- removed Main.wave
2010-08-04 04:01:27 +00:00
Guillermo S. Romero
331d37e04c Fix unbalanced {}. 2010-08-04 00:16:18 +00:00
Campbell Barton
4937076518 bugfix [#23173] Blender crashes on selecting display color corrected image in image editor
notes,
- Use our own callback which doesnt exit() blender.
- Hard coded 'MONOSCNR.ICM' is bad, should this be a user preference or stored per image?
- imb->crect was being set to imb->rect in some cases, disable this because its possible 'rect' gets reallocated and crect becomes freed memory.
- when crect cant be created draw pink checkers, so users dont get confused if color correction isnt working. (previously would draw the uncorrected image, if it didnt crash)
2010-08-03 23:59:42 +00:00
Nathan Letwory
a72047b197 Increase min/max range for Value input nodes. More useful when using Math nodes (inverting sign was impossible using value input in CMP before). 2010-08-03 23:57:39 +00:00
Nathan Letwory
ef3824b713 Add button to set Compression level when output to PNG. Without this there'd be absolute no compression at all = large PNGs. 2010-08-03 23:55:34 +00:00
Sergey Sharybin
44d51f3f64 Missed keyIndex data existment check when the whole nurb is deleting 2010-08-03 23:04:45 +00:00
Tom Musgrove
e2f5f4fa53 removing the f so that glsl shaders work on older cards 2010-08-03 22:44:15 +00:00
Campbell Barton
596952a5e0 bugfix [#23174] Text Editor: View Top of File and View Bottom of File not working [Patch to fix attached]
also moved these into the View menu (removed Edit->View)
2010-08-03 22:41:01 +00:00
Campbell Barton
0c659da03b bugfix [#23158] Translate operator leaks memory if nothing selected 2010-08-03 22:36:59 +00:00
Andrea Weikert
81b8bdc353 fix for typo in commit #31007: filtering in file browser for png and tga files wouldn't work anymore. 2010-08-03 19:03:51 +00:00
Campbell Barton
50c3da699d minor cleanup, minimal functional change.
replace some long duplicated, ifdef'd if statements for image extension.
- new function: BLI_testextensie_array(), can take an array of extensions.
- define extension arrays: imb_ext_image, imb_ext_movie, imb_ext_sound - we could have more of these.
- removed amiga extensions iff and lbm
2010-08-03 12:34:42 +00:00
Campbell Barton
957976882d build options to disable image formats WITH_CINEON, WITH_HDR.
- updated cmake, make & scons.
- renamed CMake build options WITH_TIFF -> WITH_IMAGE_TIFF, same for DDS, OPENJPEG etc.
2010-08-03 11:25:34 +00:00
Campbell Barton
940d1dcd0a remove commented scons lines from cmake files, fixed use of pointer poll function for ID drobdowns (currently unused) 2010-08-03 08:12:55 +00:00
Campbell Barton
109a3b3198 pointer poll functions for object's, mainly for modifiers, constraints.
Lattice modifier only shows lattices types, Shrink wrap only meshes etc.
2010-08-03 06:51:36 +00:00
Campbell Barton
e0f0a425fa rna pointer poll function, not used yet. 2010-08-03 05:14:59 +00:00
Campbell Barton
233df907d0 py/rna update, reload works again.
- fix for reload (f8) crashing, missing incref when creating the script namespace.
- store the module names rather then the modules for reloading incase the modules get out of date.
2010-08-03 03:53:36 +00:00
Campbell Barton
66f32bd7f9 set origin was setting surfaces as 2D curves, added dupli-group support using the dupli's offset value. 2010-08-03 00:56:43 +00:00
Joerg Mueller
86fc34b924 Audaspace:
* Added a stopCallback function that is called when the end of a sound is reached.
* Fixed the scrubbing not working.
* Minor SoundActuator cleanup.
2010-08-02 18:22:34 +00:00
Robert Holcomb
f811ab1356 added capabilty to limit color spill by an input mask 2010-08-02 17:34:44 +00:00
Campbell Barton
c418119b49 bugfix [#23151] UV Project not update in realtime until you save the file and reopen it. 2010-08-02 16:57:46 +00:00
Campbell Barton
d298a5d0a8 patch [#23054] Fix for bug #22725 "text editor doent scroll with cursor"
fixes [#22725] text editor doent scroll with cursor
from Justin Dailey (dail)
2010-08-02 16:41:14 +00:00
Campbell Barton
ec2c52c9c8 SCons
- remove scons option WITH_BF_FHS, its not needed anymore.
- comment WITH_BF_DOCS, was using epydocs which we dont use now.
- blenderlite target was broken, always using openmp.
- building without python wasnt working.

- fixed some warnings.
2010-08-02 16:27:41 +00:00
Campbell Barton
7bd687ea58 cmake
- more strict warnings for gcc/unix, still <50 for a clean build.
- install files to /usr/local/share/blender/2.53 rather then /usr/local/share/blender/.blender
2010-08-02 16:23:58 +00:00
Campbell Barton
55e64f0ba4 minor changes to Martni's commit 30961
- removed the immediate option from C/api and now store in python only, when python loads modules it sets it to False.
- unloading a module would clear the entire TypeMap for all modules, only remove the module types that is being unloaded.
- added some checks for bad class registering, report errors rather then crashing.
2010-08-02 04:20:41 +00:00
Martin Poirier
5b345524ea RNA Types metaclass registration
See mailing list posts for details [1][2][3]

Addons still need to be fixed; Campbell said he'd do it today.

See any of the py files (outside netrender) in this commit for how to do it (it's rather simple).

[1] http://lists.blender.org/pipermail/bf-committers/2010-February/026328.html
[2] http://lists.blender.org/pipermail/bf-committers/2010-August/028311.html
[3] http://lists.blender.org/pipermail/bf-committers/2010-August/028321.html
2010-08-02 02:55:12 +00:00
Campbell Barton
c04850ec06 python mathutils change
quat * quat was returning the dot product (a float), rather then the cross product.
 Use BLI_math's mul_qt_qtqt() function.
2010-08-02 00:08:01 +00:00
Joerg Mueller
bce3a49e2e svn merge -r 30913:30953 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2010-08-01 23:19:30 +00:00
Joerg Mueller
52ef66da4d Audaspace:
* Created awesome filter classes :)
* Made all filter effects use the filter classes instead of having the same implementation everywhere.
* Added a Python API for LTI IIR filters.
* Fixed a warning in creator.c that was introduced when adding game autoplay.
2010-08-01 22:33:50 +00:00
Campbell Barton
c92e3225f3 patch [#23144] bpy.Image.gl_load() -- fix
from Dan Eicher (dna)
- image.gl_load() was using GL_UNSIGNED_INT rather then GL_UNSIGNED_BYTE channel type.
- changed image.gl_load() to use the image clamp settings (patch had this as an extra argument).
2010-08-01 22:20:45 +00:00
Brecht Van Lommel
9b006d6d00 Fix preview render crash after recent G.main changes. 2010-08-01 20:36:24 +00:00
Thomas Dinges
0753766a57 Fix for the fix. 2010-08-01 16:38:30 +00:00
Thomas Dinges
4e031236d5 Compile fix for recent changes. Function needed 1 more argument.
Chingiz can you please check?
2010-08-01 16:35:27 +00:00
Campbell Barton
7e55571175 bugfix [#23134] uv project modifier not working.
own recent commit introduced this bug. would like to have this working correctly but for now commenting.
2010-08-01 15:42:22 +00:00
Campbell Barton
a3e58a951a set blender binary name for python 2010-08-01 15:15:57 +00:00
Daniel Genrich
0be152501e Smoke:
- Bugfix for not cleared smoke sim when doing alt-a and waiting for 2 sim cycles to complete
2010-08-01 15:00:53 +00:00
Campbell Barton
7524967238 - new __main__ module wasnt de-referenced after adding into sys.modules
- made int buttons round floats better 10.6 --> 11
2010-08-01 14:23:06 +00:00
Brecht Van Lommel
4a63d2a2d2 Fix for crash due to last commit. 2010-08-01 14:08:33 +00:00
Campbell Barton
e33d7d37c9 bugfix [#23129] alt-p in the texteditor doesn't work anymore
recent commit cleared the __main__ namespace once a script finished which meant classes defined there would loose their namespace.
now inset a new __main__ module into sys.modules for every script that runs, any classes that are registered will hold a reference to that modules namespace.
2010-08-01 13:57:04 +00:00
Brecht Van Lommel
f3cca3e192 2.5: more G.main changes. 2010-08-01 12:57:01 +00:00
Brecht Van Lommel
5fa7d1c1b4 2.5: code changes to reduce the usage of G.main and pass it along
or get it from the context instead.
2010-08-01 12:47:49 +00:00
Daniel Genrich
c34f831757 Smoke:
- Bugfix for display problems in shaded view: Reverting to wire display mode for domain.
2010-08-01 12:16:32 +00:00
Campbell Barton
8fd1d8f02a mistake in recent commit allowd bpy.types.Scene() which would then crash blender (thanks for spotting Luca). 2010-08-01 11:20:51 +00:00
Campbell Barton
d25747ee75 bugfix's
[#23108] bpy.ops.object.origin_set(type='GEOMETRY_ORIGIN') dosen't work in console
  [#23115] Crash when moving armature origin

- setting the armature in editmode would leave editdata in some cases.
- transforming selected linked objects to account for the movement of the obdata was only done for meshes, now do for curves and text3d.
- added utility functions for getting curve & mesh bounds.
- text3d moving center wasn't working at all.
- changed drawobject.c to use BLI_math funcs in more places.
- remove some unused code from operator object.origin_set.
2010-08-01 11:00:36 +00:00
Campbell Barton
e56913fe39 fix for un-initialized layer (only bits between 1 and 20 were initialized) 2010-08-01 10:36:02 +00:00
Campbell Barton
ea6730cdd1 - font object x/yoffset was making text box's wrap text incorrectly.
- draw text boxes with the offset applied.
(abologies for making font.c even more confusing)
2010-08-01 09:56:00 +00:00
Martin Poirier
327b4d588b Separate proportional edit setting between edit and object mode. They are now used and toggled independently. 2010-07-31 19:26:21 +00:00
Campbell Barton
cc673669c7 use more BLI math funcs (no functional changes) 2010-07-31 10:58:10 +00:00
Joerg Mueller
5c9cf81cf9 Audaspace:
* Fixed some compiler warnings
* Implemented device looping
* Note: Scrubbing in the sequencer is broken atm
2010-07-31 10:03:08 +00:00
Campbell Barton
667a2cafbe recent commit to make color balance work like the sequencer, I forgot that the gamma was inverted. fixed. 2010-07-31 10:03:08 +00:00
Campbell Barton
1280b6f902 - add back prefix for ID lists (LF) for linked and fake user for search fields.
- remove debug print for left/right name flipping & commented test from the sequencer.
2010-07-31 01:06:08 +00:00
Campbell Barton
a53a928773 Change compositor color balance to match the sequencer exactly, for this to work linear/srgb conversions need to be done which that nice since it has to convert from/to the color spaces each time, after quite a lot of testing I think its the best way to go.
The problem was that typical lift values  (0.5 - 1.5, in our case ) would over saturate shadows so that even minor adjustments would give unusable results.
tweaking the input lift to compensate for this helped with the shadows but would loose the color adjustments for the mid-tones.
2010-07-30 23:32:49 +00:00
Joerg Mueller
61c9e46aad svn merge -r 30718:30912 https://svn.blender.org/svnroot/bf-blender/trunk/blender 2010-07-30 22:34:27 +00:00
Joerg Mueller
c59b930d13 Audaspace: Refactored the complete 3D Device code giving a nicer API. 2010-07-30 22:20:08 +00:00
Thomas Dinges
e4a16c8010 Properties Window:
* Deleted space_buttons.py file as I doubt that these buttons will be done in python. File was not used anyway.
* Deleted some ifdef checks from space_buttons.c for the py header.
2010-07-30 16:15:56 +00:00
Thomas Dinges
0972d05b4b Logic Editor:
*Removed the old header menu code, replacing with Python menus.
2010-07-30 15:44:26 +00:00
Brecht Van Lommel
2f4a78ec21 Fix #23086: crash reading 1bit tiff files. 2010-07-30 13:31:22 +00:00
Campbell Barton
ae662b8235 bugfix [#23105] Scene strips renders out darker (no gamma corection?) 2010-07-30 11:55:41 +00:00
Brecht Van Lommel
5251a9b3bf 2.5: remove vertex normal flip option, this is more harmful than helpful
in many cases, and also gave incorrect rim lighting.
2010-07-30 11:50:00 +00:00
Campbell Barton
9e45fa7f2f bugfix [#23106] Blender crashes (segfault) when scene strip file is missing 2010-07-30 11:40:23 +00:00
Campbell Barton
385c8af449 bugfix [#23104] Crash when console: <SpaceView3D object>.local_view. autocomplete 2010-07-30 11:19:41 +00:00
Brecht Van Lommel
3b9b4f7605 Fix #23103:
* missing glsl update when changing color management setting
* disable glsl lamps only when disabling them for render
2010-07-30 10:44:00 +00:00
Brecht Van Lommel
fdae90fb1f Revert [#23093] Curve -> CurveMapping in brush. Don't use camel case for
UI text, and this makes it inconsistent with the property name too, Curve
is just fine...
2010-07-30 09:32:21 +00:00
Campbell Barton
477c924f50 bugfix [#20038] Vertex path selection not working in Vertex/Face mode
- disable this tool if edge mode isnt enabled using its poll function. Also fixed a bug where it would de-select the last active edge.
- made view3d grid drawing use GL_LINES's for less context switching.
2010-07-30 08:43:22 +00:00
Campbell Barton
648f40f409 bugfix [#22660] Text Boxes properties are not animateable.
suggestion [#23093] Curve -> CurveMapping in brush...
2010-07-30 06:48:18 +00:00
Campbell Barton
449f8ce4fe bugfix [#22859] Multi-user images cant be made into single user in texure panel.
turns out this isnt exactly a bug since support was never written for this but may as well support it.
now rna/py can do image.copy() too.
2010-07-30 06:09:23 +00:00
Mitchell Stokes
1b7d264f1e Fixing a typo in the BGE Python API:
BL_ArmatureChannel.rotaion_euler -> BL_ArmatureChannel.rotation_euler

Making the docs match the code:
  BL_ArmatureChannel.rotation -> BL_ArmatureChannel.rotation_quaternion
  BL_ArmatureChannel.euler_rotation -> BL_ArmatureChannel.rotation_euler
2010-07-30 04:57:27 +00:00
Campbell Barton
520d12e13e 3 duplicate functions: bone_flip_name() object_flip_name() flip_side_name()
removed object_flip_name() & bone_flip_name(), use flip_side_name()
2010-07-30 01:13:07 +00:00
Campbell Barton
9a9e04edfb patch [#23060] ColorRamp python access functions
from Dan Eicher (dna)
 elem = color_ramp.elements.new(position=0.3)
 color_ramp.elements.remove(elem)

- Modified the patch to make generic functions for adding and removing (inline code was in 3 different places)
2010-07-30 00:20:05 +00:00
Matt Ebb
eec1318996 Preview commit in sculpt brushes broke resetting curves in other areas (rgb curves etc).
Fixed by adding a 'slope' parameter to curvemap_reset() to mirror curve presets around Y axis.

Also removed curve preset with 'random' icon, wasn't doing what it looked like it should, 
this was intended only for hue correct node anyway.
2010-07-30 00:06:59 +00:00
Campbell Barton
b1f53d98e4 patch [#23088] 2.5 Text Editor: Preserve indentation with spaces
from Fabian Fricke (frigi)
2010-07-29 22:34:46 +00:00
Brecht Van Lommel
c1fd3ae7a0 Fix make/darwin build, was not updated for moved bin/ directory. 2010-07-29 13:04:20 +00:00
Campbell Barton
ab7c879963 Fix for error while weight painting:
RNA_boolean_get: OperatorStrokeElement.flip not found.

flip was renamed to pen_flip but not updated everywhere.
2010-07-29 12:16:15 +00:00
Campbell Barton
365a4b4dcc bugfix [#21093] Alt-arrowkey 'Swap Strips' confused 2010-07-29 11:47:00 +00:00
Brecht Van Lommel
3f06cab75e Fix #23073: glsl and 3d view background color didn't take color managment into
account yet, should now be consistent with render.
2010-07-29 10:09:20 +00:00
Matt Ebb
25762f4945 Fix weird colours in areas of high transmission when camera inside a volume. 2010-07-29 07:22:43 +00:00
Matt Ebb
e33460150b Added back modal keymap items for view manipulation mode switching in
zoom/pan, so they can be added in customisation. Not sure why these were removed.
2010-07-29 07:21:57 +00:00
Nicholas Bishop
407f394952 == Sculpt ==
* Changed rotation brush to not scale down the rotation angle; easier to control this way (and works the same as anchored brush rotation.)

Note: rotate brush seems to work much better with USE_ORIGINAL_NORMAL, this should probably be made the default, if not forced on.
2010-07-29 05:16:42 +00:00
Nicholas Bishop
4e405a9f3e Fixed some potential memory corruption 2010-07-29 02:29:32 +00:00
Campbell Barton
88cbcb0206 bugfix [#23062] Resolve conflict button in text editor dissappers in Blener 2.5 beta release
also uncommented console some code for testing by mistake & remove warning.
2010-07-29 00:44:53 +00:00
Campbell Barton
7ef2e33ea3 bugfix [#23075] Point clouds invisible with VBOs 2010-07-29 00:06:22 +00:00
Campbell Barton
fe77e6d919 minor changes to r30843
- the __main__ modules namespace was initialized cleanly but left dirty, now restore when finished executing a script incase a module uses this later.
- made the interactive console use the __main__ modules namespace.
2010-07-28 23:24:17 +00:00
Brecht Van Lommel
c8b6533dda Fix #23071: making vertex parent not correct with subsurf modifier, now it
also uses the final derivedmesh for the coordinates in edit mode.
2010-07-28 16:47:12 +00:00
Campbell Barton
2c8d7921bc bugfix [#23065] Pickle can not dump instances of user defined classes
- __import__("__main__").__dict__ will now always match the current scripts namespace. (which is what pickle expects).
- __builtins__ as a module rather then a dict from PyEval_GetBuiltins() acts slightly differently, use the module to follow python.
2010-07-28 16:26:42 +00:00
Brecht Van Lommel
b51350fb4f Fix #22959: uv selection mode was not initialized correctly for new scenes. 2010-07-28 13:19:02 +00:00
Brecht Van Lommel
114b86f6d7 Fix #22996: switching scenes did not exit editmode, meaning changes
made were not visible in the other scene in object mode.
2010-07-28 13:15:29 +00:00
Campbell Barton
d44a2b5b1b fix for running rna subclasses own __init__ functions.
- exceptions in the __init__ functions were not being checked for and segfaulting
- avoid creating a new BPy_StructRNA instance per function call, use the existing one if the type matches.
2010-07-28 12:11:40 +00:00
Brecht Van Lommel
2a3c1a4cf3 Fix #22964: incorrect derivatives for global texture coordinates, showed up as
artifacts in bump mapping.
2010-07-28 11:10:56 +00:00
Matt Ebb
4ddcb65399 Assorted small volume render related fixes. 2010-07-28 08:06:46 +00:00
Matt Ebb
79dd2cc8e9 Fix [#22197] empty XYZ text size changing according to distance from origin
Partial revert for commit r 27946

Empty/axis xyz text is now purely aligned to object space. Previous 3d view matrix manipulation
stuff that I added wasn't correct, and causing more problems than it solved. Perhaps someone 
can tweak this later to be fixed size/screen aligned, but for now this is less annoying.
2010-07-28 08:05:39 +00:00
Campbell Barton
fa9550bba0 fix for un-initialized memory use with thumb's & minor internal improvement for bpy.utils.clean_name() 2010-07-28 07:37:24 +00:00
Campbell Barton
f2e1136ca3 bugfix [#23053] Blender crashes when adding image as a strip
buffer overrun when copying image name.
2010-07-28 07:00:40 +00:00
Campbell Barton
c32720a0c0 bugfix [#23055] transforms with proportional fall off affect hidden vertices in certain situations
faces were not being checked if they were hidden before adding their internal edges for connected proportional editing.
2010-07-28 05:47:46 +00:00
Campbell Barton
51e8926cb9 bugfix [#23052] New Bracket Highlighting Patch Causes Seg Fault [Patch to fix attached]
by Justin Dailey (dail) for bracket highlight patch from yesterday.
2010-07-27 19:22:23 +00:00
Daniel Genrich
112711e6a4 Smoke:
- Bugfix for using uninitalised velocity in case of PART_PHYS_NO (reported by MiikaH)
2010-07-27 16:18:12 +00:00
Nicholas Bishop
88dcfbaee9 == Sculpt ==
Added a brush reset operator so that a user won't need to reload the default blend to get back default brush settings

* New brush.reset operator, resets a brush based on the currently-selected tool
* Added UI button in the tools panel

TODO:
* Only resets sculpt brushes right now, other paint modes should be added
* Sculpt polish tool exists only as a Brush, not as a tool; I'd suggest we make it a tool so it can be reset to defaults too
2010-07-27 16:09:02 +00:00
Daniel Genrich
78e5a29990 Smoke:
- Fix typo in tooltip
- Add timeframe independand timesteps
2010-07-27 15:33:21 +00:00
Daniel Genrich
614192cce3 Fluid: Fix empty named fluid particle system; Smoke: Fix typo 2010-07-27 15:04:50 +00:00
Daniel Genrich
967d25ac1c Smoke Patch + additions: a) Applying patch #22765 by Miika Hämäläinen (domain border collision settings, vorticity settings, time scale, non absolute density, smooth high res emitter, initial velocity multiplier, high res strength available to be set to 0), b) Additions by me: --Initial velocity is now per flow object, not per domain; --Using boundingbox as standard display mode for domains (was wire before); --When adding a flow object, an initial nice SmokeParticle system is added too with nice initial settings (life=1, no_render, unborn, etc) fitting smoke simulation; --Adaptive timesteps introduced to the smoke sim (depending on the magnitude of the velocity) because it was quite unstable when used for fire simulations, still needs to be tested and will also slow down some simulations. 2010-07-27 14:53:20 +00:00
Brecht Van Lommel
ecb58629f2 Fix #22875: image browser crashes on true colour jpg. The skip_input_data
callback was not correct, modified now to based on jpeg_mem_src as included
with libjpeg.
2010-07-27 14:40:48 +00:00
Brecht Van Lommel
1448d188a1 Fix #22950: width of a layout object does not propagate to its sub-layout
objects (row, column, box, etc.). Patch by Tamito Kajiyama, thanks!
2010-07-27 12:11:25 +00:00
Brecht Van Lommel
31362c865f Fix #22673: crash with solidify + subsurf + array modifier in edit mode. 2010-07-27 12:01:40 +00:00
Brecht Van Lommel
c0ba0c1171 Fix #22986: glsl didn't take object hiding into account yet for lamps. 2010-07-27 11:10:34 +00:00
Brecht Van Lommel
5e5b0cbb26 Game engine was not updated yet to disable vertex/normal state on exit as
other parts of Blender expect, might have caused issues with VBO's in some
cases.
2010-07-27 11:07:34 +00:00
Brecht Van Lommel
0280736181 Fix part of bug #23042: unnecessary texture preview re-render on changing
brush properties.
2010-07-27 10:31:22 +00:00
Brecht Van Lommel
5fe3909a7b Fix #23044: sculpted mesh not updated in object mode with VBO's enabled. 2010-07-27 10:27:08 +00:00
Brecht Van Lommel
83ff2857ae Fix #23014: 3d view pivot point default was bounding box instead of
median point as in 2.4x.
2010-07-27 10:06:43 +00:00
Joshua Leung
c3ef9c16b9 Bugfix #23000: AnimData on Meshes not saved (and loaded)
* Animation data for meshes wasn't getting saved at all (the linked actions were, but that doesn't really count)
* Lib-linked actions from other files may not load correctly too
2010-07-27 06:06:36 +00:00
Campbell Barton
da060dad99 bugfix [#21754] Smooth view + repeeted view orbit results in slow orbiting.
- original quat was not assigned yet so never gave a good result.
- quat angle comparison as vector is wrong.
2010-07-27 04:56:24 +00:00
Campbell Barton
db6f1f52a7 bugfix [#22027] Group disappears in render after adding a group instance 2010-07-27 04:02:09 +00:00
Campbell Barton
160b1d815d [#22274] Special chars = 2 characters
workaround, just remove utf from number strings until we have proper UTF editing.
2010-07-27 01:20:24 +00:00
Nicholas Bishop
63791e03d6 * Partially revert r30763, where PROP_IMAGEPATH was added.
* Brush icon property back to not using image browser until a better solution is decided on.
2010-07-26 23:40:46 +00:00
Campbell Barton
00149cfb9d patch [#23041] CMake WITH_PYTHON_INSTALL option
from Dan Eicher (dna)

--- snip ---
Adds the option to not copy python into the .blender/python directory.

Also fixes the problem of deleting the blender installed python where the blender runtime only looks for the copied python and not the system one but not entirely sure why, something to do with CMake hardcoding the PYTHONPATH and PYTHONHOME vars I suppose.

This patch only applies to the 'UNIX AND NOT APPLE' platforms but, then again, those are the only ones anyone really
cares about...or at least the only ones where using the system python is really viable.
2010-07-26 23:16:21 +00:00
Campbell Barton
ac1aea71b1 bugfix [#22832] ctrl+shift+a on linked in group which is in a group makes outline green 2010-07-26 22:33:58 +00:00
Campbell Barton
7dd0395181 patch [#22901] pixel- and aspectratio corrected camera representation in 3dview
from Ralf Hölzemer (cheleb) with my own edits to make the selected camera more clear in the camera view, this also works around the problem where you cant see the camera to select it with passepartout close to 1.0.

--- snip ---
Attached patch changes the camera representation to draw pixel- and aspectratio corrected in 3dview. It does also fix
a little issue where the camera name would jump when the title save would be (de)activated in the camera view.
2010-07-26 21:35:24 +00:00
Jason Wilkins
2ab8a2a516 * Fix: CPU usage was going way up because some WM_main_add_notifier functions that I thought were commented out somehow became active again. 2010-07-26 20:42:50 +00:00
Jason Wilkins
833d42d92e * removing code meant for debugging 2010-07-26 20:17:21 +00:00
Jason Wilkins
3683d9d1b8 Saved a call to 'brush_alpha' 2010-07-26 20:05:08 +00:00
Campbell Barton
f30c12bcab patch [#23039] cmake install taget fix for brush icons on linux
from Ralf Hölzemer (cheleb)
2010-07-26 19:59:33 +00:00
Campbell Barton
aac34d8e94 patch from Roelf De Kock (kiemdoder), removes redundant values from the snapquats[] array. 2010-07-26 19:57:44 +00:00
Campbell Barton
982615ff1b bugfix [#22985] dope sheet crashes Blender 2.5 Beta 2010-07-26 19:48:35 +00:00
Jason Wilkins
b69158dc02 Fix: Overlay should draw areas that will be affected transparently and areas that will not be effected opaquely. 2010-07-26 19:29:21 +00:00
Sergey Sharybin
cc9dbc7ac2 Curve shape keys:
- Fixed incorrect working of "from mix" insert keyblock operator property
  shapekey coordinated are applying on curve's data when creating displist,
  so curve's nurbs can't be used as unchanged data -- use basis keyblock data instead

- Fixed tilt damaging when loading editcurve -- made a typo in array indexes
2010-07-26 19:07:33 +00:00
Campbell Barton
c1649dcf10 bugfix [#23038] View rotation snap has left and right view names swapped arround.
also noticed some spelling errors.
2010-07-26 19:00:15 +00:00
Campbell Barton
230d66796b [#23033] Unindent after continue statement in Text Space [Patch to fix attached]
from Justin Dailey (dail) 

from the tracker
--- snip ---
In the text space after the python commands return, break, pass or yeild and hitting "Enter" for a new line,
it unindents 1 tab. However it does not do this for the continue statement.
2010-07-26 18:50:38 +00:00
Campbell Barton
c0898bbf48 [#23032] Bracket Highlighting in Text Space Fix [Patch to fix attached]
from Justin Dailey (dail)

 from the tracker
 --- snip ---

In the text editor doing something like this:

print(":(")

When it goes to match the closing bracket, it will highlight the one in the string, not the first one. Also doing:

array["[index"]

will cause it to match the second [ with the closing one.

I have attached a patch to fix this issue. (See attached image to see correct highlighting)
It also works with triple quotes strings(ie """...""" or '''...''')

*Note* However, originally bracket highlighting always on even if syntax highlighting is off. The patch makes it so
it only highlights brackets when syntax highlighting is on (this is a side effect of doing the code this way, if it
was done any other way ALOT of code would have been needed to check for strings,triple quoted strings, escaped quotes,
and comments forwards and backwards). When highlighting matching brackets, the code checks the line's format string
to see if the char is in a string or comment to skip it. If syntax highlighting is turned off, the format string is
null and cannot be used,thus no bracket highlighting.
2010-07-26 18:38:12 +00:00
Nicholas Bishop
8fb499c34f * Added a new RNA subtype, PROP_IMAGEPATH. It's the same as PROP_FILEPATH, but for images only.
* Changed UI code to display image browser for PROP_IMAGEPATH
* Set the icon_filepath RNA property for brushes to use PROP_IMAGEPATH
* Changed preview icon drawing to ignore unset icons
* Fixed const warnings in brush RNA
2010-07-26 18:37:47 +00:00