Commit Graph

47594 Commits

Author SHA1 Message Date
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
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
8686f46abc fix for typo in mathutils vec.to_track_quat() argument parsing. 2010-11-23 16:07:51 +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
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
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
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
4a20c386fd bugfix [#20768] Project Snap Broken 2010-11-22 14:16:11 +00:00
Campbell Barton
69246d9080 rna invoke function wm.invoke_confirm() for python access. 2010-11-22 13:43:51 +00:00
Campbell Barton
71079a47d3 find filepaths operator had blend file and search path swapped. 2010-11-22 13:32:43 +00:00
Ton Roosendaal
0191c2f776 Reverting fix for yesterday's commit that broke Undo. 2010-11-22 11:21:33 +00:00
Campbell Barton
f781780cc0 - blend_m3_m3m3 and blend_m4_m4m4 now support matrices with negative scales.
- python/mathutils api matrix.lerp(other, factor)
- new function mat3_to_rot_size(), like mat4_to_loc_rot_size but with no location.
2010-11-22 10:39:28 +00:00
Campbell Barton
77dff3f986 fix for fix r33219, reports. Set a valid WM after running UNDO.
[#24849] changing objects to another layer causes segmentation fault
[#24848] Using an operator outside of edit mode crashes blender
[#24844] Crash related to the subdivision (aka subsurf) modifier
[#24843] ctrl+z crashes blender
2010-11-22 06:18:49 +00:00
Campbell Barton
bb36378a3a rename hide_tooltips_python to show_ ..., tag unused variable with recent sequencer commits. 2010-11-22 05:36:49 +00:00
Elia Sarti
19e091ec5e User preference to hide Python references in Tooltips. 2010-11-22 00:10:32 +00:00
Matt Ebb
8f657c174d Fix: 8bit raw and 'blender voxel' voxel data texture formats didn't support relative paths 2010-11-21 23:36:29 +00:00
Peter Schlaile
a0517e6338 == Sequencer ==
* documented and rewrote the render interface of the sequencer.
  (now, the geometry / render_type / etc. settings are stored within a
  seperate structure called SeqRenderData that is passed within the code.)

* that fixes
  * cache problems, since the caching system didn't keep track of
    proxy files vs. final renders.
  * is a necessary step, to bring back frame blending in speed effect
    (the SeqRenderData structure elements are already there)
  * will make motion blur render options available within the sequencer!

* this patch also fixes:
  * "easy retiming" using speed effects. (in Blender 2.49, you could 
    add a speed effect and resize the source track to retime it to that
    length)
  * adds labels for the Original dimensions for Image + Movie tracks
    (worked in 2.49, too)
2010-11-21 20:00:31 +00:00
Sergey Sharybin
a2dc1fe4b0 Toggle cyclic on when creating segment between first and last points of non-cyclic bezier 2010-11-21 19:29:08 +00:00
Sergey Sharybin
18d9f7cbbf Recalc handles after toggling bezier's cyclic flag when deleting segment 2010-11-21 19:01:18 +00:00
Sergey Sharybin
e006d187f4 Applying patch #24822: Select linked for curves as for meshes, CTRL + L version
With some own changes:
- Select pick moved to invoke()
- Used editsurfcurve_region_view3d as poll function for this operator
  due to ogl dependency

Thanks to Elia Sarti (vekoon)!
2010-11-21 18:50:53 +00:00
Ton Roosendaal
d016f52c21 Bugfix #22611
(Well, while testing this report I found this fix!)
Blender could crash after rendering a 2.4 or 2.5 file

The context before/during/after file reads is still fishy.
Need a more clear & clean mind to really check it from
scratch again.
2010-11-21 18:46:50 +00:00
Martin Poirier
01c6b6f1e9 [#22854] Objects lag behind mouse pointer when transformed (translated)
[#24652] Project vertices button showing in object mode and leads to wrong behavior.

Removing soft redraw (code is still there in case we need it eventually) on mouse move, now that events are compressed.
2010-11-21 18:31:00 +00:00
Ton Roosendaal
8a92513032 Bugfix #24837
Small typo, EXR option PIZ was typed as PIX
2010-11-21 17:32:57 +00:00
Ton Roosendaal
ca354a6a6f Bugfix #24825
Error in alignment code caused some buttons to draw not nicely
aligned, like the Frame rate buttons in Render properties.
2010-11-21 17:23:55 +00:00
Sergey Sharybin
5fff1a98a1 Fixed missed selection oulines for curves/surfaces/fonts/armature when texture shading is active 2010-11-21 14:05:18 +00:00
Campbell Barton
39b7bfe6bd - check IF WIN32 AND NOT UNIX (for cygwin)
- patch from Mike S to enable OpenMP and xcode
2010-11-21 13:41:43 +00:00
Ton Roosendaal
722376ed7b Bugfix #24824
Color Picker: when inserting keys (right mouse menu), the colors didn't
change for buttons to indicate such. The function that sets the flags
returned too early.
2010-11-21 13:01:22 +00:00
Campbell Barton
cd2ab75b73 - include pthreads for win32 globally (as with opengl).
- MSVC CFLAGS were being set by only checking WIN32, (breaking non-msvc win32 builds)
2010-11-21 09:10:50 +00:00
Campbell Barton
f580d9c33b - some more rna range corrections
- correct exception messages for mathutils constructors.
2010-11-21 09:06:27 +00:00
Campbell Barton
cb031ec092 incorrect argument parsing for python opengl module bgl.
unsigned byte/short/int were being passes as signed values which would raise an overflow error if a range greater then the signed value was used.
2010-11-21 05:35:29 +00:00