Commit Graph

27203 Commits

Author SHA1 Message Date
Campbell Barton
82f019e954 close addon files, Py3.2 now complains when files are left open. 2010-11-24 17:29:22 +00:00
Ton Roosendaal
337f95dfab Bugfix #24887
Crash in snapping, bvh tree. Wrong check for numFaces here.
Fixed the crash by adding test for face pointer, but not sure
what the coder intended here. Needs investigation, left XXX remark.
2010-11-24 17:13:02 +00:00
Campbell Barton
bc9f1642bd fix for crash canceling fly mode. 2010-11-24 16:54:18 +00:00
Ton Roosendaal
117d11021e Bugfix #24847
When report error was drawn in info header, using border select
or paint brushes flickered. Was caused by Triple Buffer method
not checking for correct redraw case.

Also made report redraws less aggressive, it was drawing the info
header all over with 50 FPS for 10 seconds. Made it 20 FPS, and 
added code to only send notifiers for actual changes.

As todo note for future: animated UI options could get better
caching to cope with slower refreshes.
2010-11-24 16:34:38 +00:00
Campbell Barton
0daee3b8ed bugfix [#24882] fbx exporter Krash, screw objects and animations
fixed remaining issue with win32 paths.
2010-11-24 15:57:59 +00:00
Ton Roosendaal
6470078bca Typo in commit... for some reason rna_xx.c files compile without warning? 2010-11-24 15:05:54 +00:00
Campbell Barton
7c7307edbf add a window manager to files loaded from 2.4x in background mode. (partial fix for [#24882]). 2010-11-24 14:40:03 +00:00
Ton Roosendaal
c19dd6a7b2 Bugfix #23576
Logic Window: Actuator type options in menu didn't show special options
for Armature or Mesh when 'show selected' was used.

Dalai proposed a nice new RNA feature for inherited types, but with
only two exceptions handled, it was easy to code this check.
2010-11-24 14:34:16 +00:00
Brecht Van Lommel
c7c034fedb Fix #24782: proxy armature Layer state not saved with file. Was in 2.4x but
not ported to 2.5x, implemented a bit different now to fit RNA better.
2010-11-24 14:05:53 +00:00
Campbell Barton
40d7da495e correction while looking into another bug, setup_app_data() will always free window manages if mode==0, but had left the contexts manager variable which could be used later. 2010-11-24 14:05:09 +00:00
Campbell Barton
16537d8dbc fix [#24879] "Feather" symmetry option in sculpt mode crashes.
rotate_m4() was being called with axis=0
2010-11-24 12:38:18 +00:00
Campbell Barton
4235a9ff02 when fail to read a blend, report the filepath too, less confusing when chaining together multiple blends. 2010-11-24 12:17:26 +00:00
Janne Karhu
8df8b42144 Fix for [#24877] Cloth + hair bug
* Particles needed the original index layer, but didn't ask for it.
2010-11-24 11:37:09 +00:00
Janne Karhu
2512c6ce88 Fixes for [#24862] Fluid Simulator issues
* Fluid baking (using the job system) didn't update the "lastgoodframe" anymore, so reversing the frames didn't work. Now the last valid frame is checked by going through all fluid bake files when "reverse frames" is selected.
* There was all kinds of fancy checks done in the fluid modifier for reading a different frame in different cases, but as the "lastgoodframe" was really not working I don't see the point of this whole code, so removed it for now. The new functionality is: if the fluid data for current frame exists use it, otherwise just return unmodified domain mesh without any fancy backup plans.
* There were also some errors on reading uncompleted files (scrubbing timeline while bake was running), so I made the fluid file reader just return null if the number of faces didn't correspond to to actually read data. Previously this just printed an error to the console.
2010-11-24 10:56:15 +00:00
Campbell Barton
05f2e47ff0 bugfix [#23871] OSX panel button bug (Python Namespace issue)
This is an annoying but which isn't a problem for Python because they don't execute multiple scripts, one after another (there is one __main__ and everything else is a module).

So when the __main__ module in sys.modules is overwritten, it decref's the module and clears the dictionary with _PyModule_Clear(), even though the modules dictionary is still in use.

Strangely this problem only happens with Python3.1.1 and Python3.2x svn but not 3.1.2

This commit restores the namespace after _PyModule_Clear() sets all its values to None.
2010-11-24 10:23:23 +00:00
Nathan Letwory
a5cecd8284 Remove library specification. 2010-11-24 09:13:59 +00:00
Mitchell Stokes
32eba0898b Reverting revision 33120, which added vram monitoring. The method used had some problems (especially in the freeing function). I will research an alternative solution and submit it to the tracker. 2010-11-24 06:27:07 +00:00
Nathan Letwory
c790b2c238 When exporting images also add the string name (attribute). This is optional, but it helps other viewers importing from Blender .dae exports.
Small request by factor in IRC.
2010-11-23 23:58:12 +00:00
Brecht Van Lommel
250c2fe3e5 Fix #24834: curves extrude + bevel gave bad normals on rendering.
This happened when removing vertex normal flipping in the render engine. But
actually the normal of the first face in the curve was flipped on rendering,
because it used a different vertex order than other places. Also removed the
hack that computes a face normal only from a triangle instead of a quad.
2010-11-23 20:32:15 +00:00
Ton Roosendaal
c88991adee Small feature fix: zero-user blocks get indicated with "0" again in
browsing.
2010-11-23 19:06:54 +00:00
Ton Roosendaal
6c19670d7c Bugfix #24860
On entering editmode Curve/Nurbs, the undo buffer was not
correct; storing old Curve/Nurbs object name. This caused
for example the Operator tool redo options to fail; it added
another curve on first use (with user pref "enter editmode).

Solved with adding good undo push + nicer code for curve and
nurbs naming.
2010-11-23 17:28:41 +00:00
Campbell Barton
68b49aa981 use unit system for the grid floor (was only ortho before). 2010-11-23 17:14:03 +00:00
Campbell Barton
96dafef228 minor edits to exception formatting (remove ... or \n from suffix) 2010-11-23 16:45:17 +00:00
Campbell Barton
97488b0934 bugfix [#24871] Unwrapping with Smart Project give a bad result. 2010-11-23 16:10:20 +00:00
Campbell Barton
8686f46abc fix for typo in mathutils vec.to_track_quat() argument parsing. 2010-11-23 16:07:51 +00:00
Janne Karhu
c51d075b0e Changed some ui names for smoke parameters to make things less ambiguous. 2010-11-23 15:16:19 +00:00
Janne Karhu
513f0142fb Fix for [#19706] Smoke 'sticks' to Collision objects initial position
* Smoke got emitted inside collision cells, so it got stuck there.
2010-11-23 14:40:27 +00:00
Campbell Barton
620ba31e63 changes in own recent commit broke MSVC building. 2010-11-23 14:38:02 +00:00
Campbell Barton
0e9b664fce Changes to the ortho grid drawing based on discussion with Ton.
- ortho grid now draws scaled by the view3d 'Scale' setting, venomgfx noticed this was missing.
- so as not to confuse add scale next to unit display text, so rather then "Metres" it shows "Metres x 1.5" otherwise its confusing that grid lines are not in exact units.
- changed grid spacing to grid scale (needed for more logical behavior with units)
- when units are enabled grey out subdivisions.
2010-11-23 14:14:06 +00:00
Janne Karhu
4aeeee8819 Cached smoke wasn't being drawn on file load before going to simulation start frame. 2010-11-23 14:04:05 +00:00
Campbell Barton
8f37be3c0b transform snapping to a unit scaled grid was broken. 2010-11-23 13:28:13 +00:00
Campbell Barton
60d13818cf fix [#24870] ObjectActuator.offset_rotation in radians 2010-11-23 12:23:19 +00:00
Campbell Barton
ee1d2adc16 partial fix for [#23532]
- Python calling operators didn't run WM_operator_properties_sanitize() so enum functions called from python were given a NULL context.
- PROP_ENUM_NO_CONTEXT and PROP_NEVER_NULL used the same value in the enum (possible conflict).
2010-11-23 12:05:35 +00:00
Janne Karhu
855b83caec Particle fluid and boid settings didn't have a valid rna path, so they couldn't be animated. 2010-11-23 11:15:38 +00:00
Campbell Barton
ce2295999e use zero initializers instead of memset(), also change PointerRNA_NULL from an extern into a define. 2010-11-23 08:44:21 +00:00
Doug Hammond
225be0cf30 extensions_framework: fix UI drawing logic 2010-11-23 00:23:57 +00:00
Doug Hammond
8a4b42bee7 extensions_framework: fix UI drawing bug and some redundant code 2010-11-23 00:06:09 +00:00
Joshua Leung
e1506d1f12 Partial fix for #24773: Material Nodes - there isn't able to set keys on Mapping coordinates
Playback now works. The problem was that material/texture nodetrees were getting ignored completely, as I was assuming that all of these existed in the main->nodetree collection when in fact only the "group" nodetrees lived there. I don't really agree with this, but that's the way it is...

TODO: animation editor support still to come
2010-11-22 23:59:00 +00:00
Campbell Barton
4816f8fd00 fix for player with recent update. 2010-11-22 23:47:00 +00:00
Campbell Barton
6f90a38a54 error in own recent commit 2010-11-22 23:41:00 +00:00
Campbell Barton
837fedf372 fix for building with mingw/cmake 2010-11-22 23:25:21 +00:00
Campbell Barton
94e17ff01e fix for cmake if build flags are not defined. 2010-11-22 23:06:57 +00:00
Brecht Van Lommel
3892bef1f1 Fix #24596: specular toggle on material didn't work correct. 2010-11-22 22:23:50 +00:00
Campbell Barton
166980b6fe fix [#24866] object/transform/align objects error 2010-11-22 20:54:26 +00:00
Campbell Barton
5e4f03ea08 bugfix [#23609] Lamp PointerProperty 2010-11-22 20:44:59 +00:00
Ton Roosendaal
01117ca27b Bugfix #24823
Color picker: RMB "insert single value" was inserting all three values.
Same case as yesterday, made code recurse into open menu to check for
active button there.
2010-11-22 18:51:40 +00:00
Ton Roosendaal
ce9ce42e38 More button alignment stuff: campbell had a script that was
drawing various cases. Fixed another one. :)
2010-11-22 18:41:08 +00:00
Ton Roosendaal
739b8f6a5c Bugfix #24856
Button aligning revisited. Now layer buttons draw OK too, and even 
better than before (missed a rounded corner!)
2010-11-22 18:11:40 +00:00
Campbell Barton
1d468c75e7 bugfix [#24805] bpy operator runs in wrong order or is ignored at all 2010-11-22 17:21:18 +00:00
Campbell Barton
d43b55a200 fix for triangulate OBJ export option.
reworked fix from Radu Danciu
2010-11-22 16:20:59 +00:00