Commit Graph

20495 Commits

Author SHA1 Message Date
Matt Ebb
fbb68188df Restrict keyboard sensor stored events to only what's appropriate per property
(normal key, modifier key, etc)
2010-05-07 08:10:20 +00:00
Campbell Barton
ba8b63fbd7 too many args, build error 2010-05-07 07:57:15 +00:00
Campbell Barton
389e590460 ghash alloc string from render branch
svn merge https://svn.blender.org/svnroot/bf-blender/branches/render25 -r28571:28573
 svn merge https://svn.blender.org/svnroot/bf-blender/branches/render25 -r28575:28576
2010-05-07 07:54:25 +00:00
Dalai Felinto
27acb95cad Logic UI: All Sensors, Controllers and Actuators are ported now... (let's the tests begin)
* get/set funcs
* unifying rna_props for Constraint Actuator
* Collision sensor
* Ray sensor
* State Actuator

* We need icons! at least one for Sensor, one for Controller and one for Actuator

* Layout artists:
Keyboard sensor really need some help :)
The other as well. I mainly copied the layout from 2.49 with some adjustments here and there.

* some get/set functions in rna_actuator.c are exactly the same (e.g. rna_ConstraintActuator_range_get, rna_ConstraintActuator_spring_get) and other could be easily distributed. maybe something for later.
2010-05-07 07:31:39 +00:00
Matt Ebb
6bc28e97c1 Fix [#22271] N panel Lock icons not changing when pressed 2010-05-07 04:52:10 +00:00
Matt Ebb
9084df418d Warning cleanup
While I was looking in outliner.c, made some changes to let extra passes display
there such as environment (commented out before due to a previous limitation).

Also changed outliner object visbility/selectability/renderability toggles to use 
RNA buttons so you can insert keyframes with RMB menu etc.
2010-05-07 03:44:34 +00:00
Dalai Felinto
d559cf97bb Logic UI: small fixes: order of sensor type enum + state actuator showing used states now 2010-05-07 02:37:05 +00:00
Matt Ebb
f259da6141 Added dynamic enum itemf for add sensor/actuator operators 2010-05-07 02:01:50 +00:00
Dalai Felinto
9768796926 Logic UI: State Actuator done :) all actuators are there now. [and stubs update]
(it's a small commit, but couldn't help not doing it ;)
2010-05-07 01:30:12 +00:00
Campbell Barton
b28c6d3c14 bugfix for own error [#22269] object vector operations (position) not working properly after rev. 28471
double checked other get_index callbacks for the same error.
2010-05-06 22:07:03 +00:00
Campbell Barton
730ca20c63 fix for duplicating cloth which could crash on freeing
- effector list wasnt NULL'd on copying a particle system
- copying an object would initialize the cloth modifier, then copy it, witout freeing its effector weights created in cloth_init().
2010-05-06 21:31:16 +00:00
Joseph Eagar
9610515b22 keyframe transform, both through dopesheet/action editor and graph editor, works a bit better with handles. handles now follow keyframes properly in frame snap mode, in situations where they would move (but the keyframe would not) in undesirable ways before. also hopefully fixed vector scope crash in image editor. and disabled snapping to seconds (ever); this can be a seperate option, silently switching to second snapping in frame snapping mode is absolutely evil. also, the action editor draws in hundredth of seconds, not seconds, so it didn't even work. Aligorith: I hope this code is ok, if not feel free to rewrite it. 2010-05-06 19:54:43 +00:00
Dalai Felinto
6e3812d7bc Logic UI: constraint actuator+rna 100% (finally !!!) + other fixes/improvements:
- s/c/a type enum update function replaced by set function
- rna_Sensor_type_itemf and rna_Actuators_type_itemf implemented (but not working ... it was working yesterday before I updated the set func, so need further investigation). Matt, if you have any clue on that ...

Roadmap:

i) I definitively gotta unify the maxloc, minloc rna properties.
the way it's right now (based on 2.49 makes the layout code really clunky
ii) - actuator missing - State Actuator (I'll probably need help on that).
iii) - sensor missing - collision and ray (they are partly implemented, but the enums are a mess there).
iv) - get/set funcs missing (not many) and default values (not many)
v) - have more lookup functions for properties and material (I'll definitively need help on that).

Eventually will fix (iii, iv and v) changing bge and dna code and doing a subversion/do_version.
2010-05-06 19:12:08 +00:00
Campbell Barton
c9ca41c6f1 dont write blender recent file list or save quit.blend when running in background mode. 2010-05-06 18:25:56 +00:00
Campbell Barton
294e82446a own restrict-render commit broke hide unselected. 2010-05-06 18:11:01 +00:00
William Reynish
263cc93006 Make drop images work from external desktop into Blender image window.
Still has work todo, like detecting filetype on drop event itself. Ton will continue...
2010-05-06 17:45:02 +00:00
Campbell Barton
c8a0592288 option to use the linked path or the local path for pointcache.
needed for sintels hair to be baked locally.
2010-05-06 17:12:44 +00:00
Campbell Barton
0550512388 make save as copy default for renders, so artists saving with F3 dont end up with many image datablocks pointing to their Desktops 2010-05-06 16:37:39 +00:00
Ton Roosendaal
2016bb77b7 Part 1 of making external drop events work. Have to move work to another system,
that's why this first step. :)
2010-05-06 16:06:57 +00:00
Campbell Barton
58ca3086d3 more checks to last commit
- dont allow new() to return an existing fcurve.
- dont allow creating fcurves with blank paths.
2010-05-06 14:53:27 +00:00
Campbell Barton
bd2f576e0f rna functions...
fcu = action.fcurves.new(data_path, array_index, group)
 action.fcurves.remove(fcu)
2010-05-06 14:43:21 +00:00
Dalai Felinto
092bd9f300 Logic UI: actuators - action+rna 100%, sound 100%, constraint+rna 50%
Notes:
1) I had to pass Context to the draw_actuator_sound in order to access the open_sound_operator
uiTemplateID(layout, C, ptr, "sound", NULL, "SOUND_OT_open", NULL);
According to Campbell they are better ways to do that (mdef bind for reference). but for now it works.

2) for the record: action actuator is equal to shape actuator (but runs in armature)

3) in Constraint Actuator I think I should unify all the limit_loc_max_, loc_min, ... properties. I was thinking about replacing it with a single limit_loc_max, limit_loc_min, range, distance, and use get/set funcs to find the correct one.
2010-05-06 12:01:44 +00:00
Campbell Barton
cbf7d507c5 last commit broke linking to scenes from the UI 2010-05-06 11:47:10 +00:00
Joshua Leung
1de451ff2d Datablocks Viewer Bugfix:
Adding Drivers and/or KeyingSet paths from the Datablocks Viewer for array elements was not working.
2010-05-06 11:28:46 +00:00
Matt Ebb
600d22fd8f Fix [#22256] bpy.ops.sequencer.delete.poll() not working
Just about all sequencer operator poll functions were requiring an active 
sequence editor space type. This wasn't necessary for most of them, and prevented use 
from scripts, console, etc.
2010-05-06 07:19:55 +00:00
Matt Ebb
16e628023c Fix [#22249] Can enter camera view when there is no camera in scene 2010-05-06 03:49:26 +00:00
Dalai Felinto
b88656d7f1 Logic UI: more actuators: armature, motion, edit object (ui) and 2dfilter (layout fix) 2010-05-06 03:26:46 +00:00
Matt Ebb
e364ede7b9 Fix [#22246] Invisible objects on 3D-View (patch included)
Modified patch by Teppo Känsälä, thanks for finding the issue!
2010-05-06 03:15:14 +00:00
Matt Ebb
13efa685db rna float set function example for dfelinto 2010-05-06 02:58:36 +00:00
Matt Ebb
7245d935eb Tweak for dfelinto, logic ui 2010-05-06 01:38:17 +00:00
Dalai Felinto
09e6190b49 BGE Logic UI: 2dfilter actuator + object (motino) actuator + commenting out buggy sensors 2010-05-05 21:25:34 +00:00
Brecht Van Lommel
0c495ffe10 Fix for GPU_free_unused_buffers deadlock, solution by Tamito Kajiyama, thanks! 2010-05-05 17:14:43 +00:00
Campbell Barton
12cf8ac1d6 - split objet group add/link into 2 operators
- link now brings up a search box so when there are 100's of groups its less annoying.
- utility functions for id-enums so only local objects can be displayed in a search list (used for group_link)
- renamed operator properties from typle to scene, group, action etc.
2010-05-05 15:41:38 +00:00
Brecht Van Lommel
575dce788a Fix bug with appending a second time from the same .blend file, it would
get the wrong subversion number and do unnecessary conversions.
2010-05-05 14:59:22 +00:00
Campbell Barton
b63d069055 [#22177] Adding BLF to the BGE and exposing BLF_load as blf.load
from Mitchell Stokes (moguri) 

also updated blf docs
2010-05-05 06:38:49 +00:00
Martin Poirier
8961d63c54 [#22212] edit problem with translate manipulator
Missing a matrix normalization (objects scaled in object mode would have the bug).
2010-05-05 02:07:26 +00:00
Joshua Leung
bfca6d8f75 Bugfix #22244: Crash on using ops.constraint.childof_set_inverse and childOf_clear_inverse incorrectly
Adding some NULL checks to all the constraint operators. This is not ideal, but at least the crashes are gone now. More work is needed to properly fix this...
2010-05-05 00:44:42 +00:00
Matt Ebb
96aa9f7002 Logic Editor UI work
* Re-structured code (can delete the old function entirely when this is done)
* Fixed links/inlinks
* Fixed some bugs in add and remove controller/actuator
* Cleaned up some ui layouts
* Use key event types in keyboard sensor
* Implemented object controller 'state' in RNA/layout engine (still needs tweaks)
2010-05-05 00:12:31 +00:00
Dalai Felinto
c3cd8175c1 BGE Logic UI: fix for scene actuator
Any volunteer for this?
//XXX to do: an operator that calls file_browse with relative_path on and blender filtering active
2010-05-04 22:05:41 +00:00
Campbell Barton
7a63442f99 remove conflicting restrict render key 2010-05-04 22:01:24 +00:00
Campbell Barton
dec42e07f4 fix for raytrace crash on scenes with very large objects, assert could fail with really large numbers, instead return 0.0. 2010-05-04 21:56:01 +00:00
Campbell Barton
41ed305cb2 make a dummy billboard if its velocity or vector are nan/inf
was causing crashes in the raytracer.
2010-05-04 21:43:43 +00:00
Dalai Felinto
74f5a0928f BGE Logic UI: more actuators + almost all sensors
* Matt, I'm marking some "property" rna properties that will need some speacial lookup.
Talking with Campbell we thought that it will be nice to have the lookup with autocomplete for the properties, but giving you the freedom to type whatever prop_name you want (so you can use python created properties).
That way we would still store it as a string.

Whenever the property doesn't exist (or was renamed, therefore can't be found) the property name tints in red ...
Is that possible?

* Matt: in draw_actuator_random I used a uiItemL for one of the modes. Is there another way to do that (having the label in the rna file?). I noticed draw_nodes has some cases of that as well.

* Andrea, the actuator_game property filename (in rna_actuator) is the one that needs to open the filebrowser but saving the result as relative path (or to have relative path as the default in this case)
2010-05-04 21:31:46 +00:00
Campbell Barton
f721447f22 billboards were using un-initialized memory and avoid divide by zero in some cases. 2010-05-04 21:10:26 +00:00
Campbell Barton
22a34cc83b render hide/unhide (Ctrl+H, Ctrl+Alt+H, Ctrl+Alt+Shift+H) 2010-05-04 15:04:28 +00:00
Joseph Eagar
a7cbd5008e merging revisions 28564-28569 from render branch into trunk 2010-05-04 12:31:24 +00:00
Dalai Felinto
cef3e3099a BGE Logic UI: more sensors + rna fixes + actuator empty draw functions (+ camera actuator) 2010-05-04 07:34:46 +00:00
Campbell Barton
02b8995bae clear warning 2010-05-04 07:26:57 +00:00
Campbell Barton
0975b9a35f clear 2 warnings 2010-05-04 05:30:17 +00:00
Daniel Salazar
96beb8330c Great patch by Harley Acheson fixing about 80 typos and spelling
mistakes in makesrna
2010-05-04 05:15:53 +00:00
Xavier Thomas
850a4b508b Fix [#21353] Rendering h264 reports broken settings and fail.
Also silenced a warning.
2010-05-04 00:28:41 +00:00
Dalai Felinto
44c0f38e6c BGE Logics UI: commit to receive some feedback from Matt
To test use debug mode > 0 (Ctrl+Alt+D)

* primarly the goal is to put all the bricks there, and then to worry about the proper layout
* sensor header added (need to be more compressed). Also checkbox will not work that well here in my opinion.
we need to see what can be used instead (icons?)
* sensors, and actuators in alphabetical order
* a lot of sensors using the rna (//XXXSENSOR in the ones not using it)

* the logic_window.c code for controller and actuator is there only to display the draw functions for controller and actuators. But the code it's a really bad copy of the sensor code, so it will be fixed later (Matt? :)

* I would love if the non-expanded mode were more compact, more like in 2.49 (the name non-editable).
but this is the kind of think we can worry in the end.
Also instead of "move up/move down" it would be nice to drag/drop the sensors/controllers/actuators

* to do: rna_actuators: to rename type to mode for the enum
2010-05-04 00:06:13 +00:00
Campbell Barton
a253d2d0f3 add missing include from recent commit 2010-05-03 21:07:57 +00:00
Joseph Eagar
afa872200c merge multires changes into trunk 2010-05-03 16:06:36 +00:00
Campbell Barton
245ab753f5 misc uninteresting stuff (killing time at airport commit)
- pep8 updates
- RNA_TwoDFilterActuator --> RNA_Filter2DActuator
- minor changes to conolse namespace init.
2010-05-03 16:00:42 +00:00
Campbell Barton
0fdd003d9a have timeoffset use (int)floor(timeoffset+0.5f) when converting to an int to avoid problems with nagative values. 2010-05-03 15:56:44 +00:00
Campbell Barton
914d5e5f62 sphinx doc generation
- include default values as well as min/max.
- partial rebuilds, so we dont have to build all docs each time, only the changed files.
2010-05-03 15:52:15 +00:00
Joseph Eagar
88c3b68207 mask modifier properly works in weightpaint and edit modes now. note that modifiers should not have to provide a applyModifierEM function, there's really no reason to not pull the result from applyModifier if applyModifierEM doesn't exist, it's not like we don't have a dozen *EM functions that do just that, anyway. fixes 22192. {merged 28543 into trunk} 2010-05-03 10:09:26 +00:00
Matt Ebb
39aac78b59 Fix [#20999] Node Header icons drawn wrong
Would like to re-do this stuff properly at some stage...
2010-05-03 08:43:00 +00:00
Matt Ebb
b18d377292 Updated icon set, thanks jendryzch! 2010-05-03 03:33:20 +00:00
Matt Ebb
23ccac18cd Fix [#22199] Cloth Cache Panel > Disk Cache doesn't work
Condition for this to work (.blend file must be saved) was poorly communicated 
in the UI (printfs are no good for this - ideally should use reports). Tweaked this a bit.
2010-05-03 03:02:27 +00:00
Matt Ebb
43f0fd08b3 Fix [#22227] Unbinding calls bind operator
Problem wasn't that the same operators was being called, just seems like the code wasn't updated after rev. 28376
2010-05-03 02:01:38 +00:00
Peter Schlaile
31cfad9fda == Sequencer ==
Made Multicam-Editing really work:
* added a panel within N-keys, so that one can start/stop playback
  and cut between cameras directly from the panel
* made "active_strip" RNA editable, to make that work correctly
  (is usefull anyways :) )
2010-05-02 17:36:38 +00:00
Daniel Genrich
35689475c8 Add read-only property to check if any duplis are used. Without this, ob.create_dupli_list(scene) crashes when no duplis are on the object. We cannot use duply_type !='NONE' because for non rna dupli types like dupli_particles, it fails. And some dupli types, we don't want to have in rna 2010-05-02 13:48:32 +00:00
Peter Schlaile
540bf6d7c8 should make problems mentioned in
[#19221] Sequencer animation curves not converted correctly from 2.4

go away.
2010-05-01 16:02:59 +00:00
Peter Schlaile
93a7f0ef65 Second round of sequencer IPO-conversion to new animation system:
* now non-frame-locked IPOs work, too.
2010-05-01 15:17:30 +00:00
Peter Schlaile
d5939c03d1 First round of importing old sequencer IPOs to new animation system:
* Frame locked IPOs work now

TODO: non-frame-locked ones :)
2010-05-01 14:09:45 +00:00
Peter Schlaile
0b8704a503 Fixed version patching for unique sequencer names:
now iteration over all strips (including meta strips) works correctly.
2010-05-01 12:39:06 +00:00
Peter Schlaile
bff3ec4ccc == Sequencer ==
Since prefetch rendering in sequencer is currently disabled, 
seq_thread_shutdown should be always TRUE for now.
2010-05-01 11:51:56 +00:00
Matt Ebb
c64e4566e1 Fix [#22202] Box Selecting bones does not update animation windows 2010-04-30 07:22:07 +00:00
Sergey Sharybin
16e7ed28be Highlight last selected point in curve/surface edit mode.
Curve->lastselbp field was renamed to Curve->lastsel and now not last
either BPoint or BezTriple is storing here. It's not easy to determine
type of selected point, but operator which depends on such point reviews
the full nurbs, so this shouldn't be a problem.

Made changes to curve undo stuff to restore last selected point on undo/redo.

Added new theme color for curve last selected point.
2010-04-30 04:48:40 +00:00
Matt Ebb
53dbc1efdf Fix [#22207] Selecting Roots also selects hidden 2010-04-30 01:22:21 +00:00
Joshua Leung
12a7c8f699 Bugfix #22201: NLA 'freeze' icon does not match box
When the channel list in the NLA Editor was resized, the 'freeze' icon on Action Lines stayed put due to a relic from older code.
2010-04-29 23:29:50 +00:00
Matt Ebb
87072f1585 Removed unused code from yesterday 2010-04-29 23:24:31 +00:00
Daniel Salazar
92dfb98ff6 Suggestion by Florian Meyer (testscreenings) to change default ramp to
RGBA 0000 - RGBA 1111 (no more cyan)
2010-04-29 23:15:03 +00:00
Campbell Barton
5e74542bb6 use size_t for MEM_allocN_len as well as some of its callers 2010-04-29 21:46:25 +00:00
Andrea Weikert
cbc2a71128 [#22133] File Browser Mismatches File Name and Thumbnail
* sorting of file list interfered with thumbnail order, stopping job while sorting now.
2010-04-29 18:53:01 +00:00
Campbell Barton
08c3bfdfaf NULL check for pointcache. not sure this should be fixed elsewhere, commented this needs further checking. 2010-04-29 17:57:17 +00:00
Guillermo S. Romero
f63de81223 SVN maintenance. 2010-04-29 17:07:17 +00:00
Campbell Barton
610c4befd4 option to copy constraints without making their ID references direct links.
needed because proxies are causing libs to be linked directly when they should be kept indirect (likely slowing load times though I didnt time this)
2010-04-29 15:31:53 +00:00
Campbell Barton
6662440867 select linked options, Library and Library ObData 2010-04-29 14:44:39 +00:00
Campbell Barton
7e0fc2692b add missing header 2010-04-29 07:06:00 +00:00
Matt Ebb
b008f04450 Rewrite of Logic editor UI to use layout engine
This commit puts the ground work in place, swapping out the crusty old Logic Editor
UI code for the new RNA-based layout engine. It's disabled with ifdefs at the moment
because it's incomplete, but Dalai can now do the grunt work to fill it all out and get it running.

Also includes a bug fix to LINK buttons, and two new logic operators to add and delete sensors.

Dalai, just switch the #if 0 and #if 1 in logic_window.c:3412 and 3469
2010-04-29 07:01:48 +00:00
Daniel Salazar
09f2b457f8 Set all brushes default distance
Edit mode back geometry occlusion on
Render size to %100 (%25 default is confusing)
Allow negative frames disabled by default (the use cases of this are
very few for it to be on by default)
2010-04-29 06:42:31 +00:00
Daniel Salazar
58cb999253 Newly created brushes will have a lower spacing. Still need to fix some
of the default brushes
2010-04-29 05:20:24 +00:00
Dalai Felinto
a86748adf8 fix for [#22195] Empty Size minimum limit too big (patch by Bassam Kurdali - slikdigit) with small change
(ui range precision to 2 instead of 4, since 4 doesn't seem to work here).

From the tracker:
""" 
The smallest size allowed for empty_draw_size is 0.1. This is un-necessarily limiting and, depending on the scene, much
too large resulting in visual confusion in the 3D View.
Opening old files initially results in small empties, but when you click on them they 'grow' to the new minimum. This
seems to show that previous blender versions didn't have this bug.
Please remove the limitation, or, if needed, make it a much smaller number, so that empties are easier to see and distinguish from one another in small scenes/setups
"""
2010-04-28 21:18:40 +00:00
Campbell Barton
9db7f4122d fix for crash on loading some nodes. 2010-04-28 18:13:03 +00:00
Campbell Barton
b2196c364f pin and driver id pointers were adding user references from rna but not on file load.
removing a reference to either could remove the object/data from the scene.
use set functions to avoid refcounting.
2010-04-28 11:05:11 +00:00
Daniel Salazar
0b49c6255f patch 21737 by Elia Sarti (vekoon)
Currently for ColorBands, when pressing the Add button, new elements are
set with a medium gray in a medium position which often is not desired
behaviour.
 
This patch when possible sets new elements as averaged values between
the current element and its preceding neighbour
2010-04-28 09:29:17 +00:00
Campbell Barton
5982662e23 add option -Y to enable python script execution. 2010-04-28 08:02:51 +00:00
Daniel Salazar
7dd251bb2b Manipulator combo was a bit too much cluthering for default, reverting
that. Enabled grease pencil smooth stroke
2010-04-28 07:36:47 +00:00
Campbell Barton
2d4d820b97 3dview --> view3d, patch by Jonathan Smith with small corrections and changes. 2010-04-28 07:25:39 +00:00
Daniel Salazar
68e68af102 - Increased default 3D View clipping
- Default cube properly selected
- Using transform manipulator combo (loc/rot/size)
- Default sculpt brush spacing was too wide (jagged strokes)
2010-04-28 06:46:44 +00:00
Daniel Salazar
574d1117f8 Tweaking of default preferences: Playback FPS on, larger miniaxis, bit
faster smoothview, third scene lamp ON (shading looked completly dark
from below)
2010-04-28 06:18:16 +00:00
Campbell Barton
058b702f19 user modules were not loading in background mode. 2010-04-27 21:01:24 +00:00
Campbell Barton
124c55fcc3 remove redundant argument from mathutils callbacks 2010-04-27 19:21:36 +00:00
Campbell Barton
f9fbfd9297 oversight in recent mathutils update. obj.matrix = obj.matrix would call its own updage callbacks until it crashed. 2010-04-27 18:55:25 +00:00
Campbell Barton
91197621dc fix for error in decleration order 2010-04-27 13:22:43 +00:00
Matt Ebb
d9dbf99cae Fix [#22173] Texture nodes update every mouse click
Notifier tweaks
2010-04-27 11:09:52 +00:00
Campbell Barton
505023d206 factor for setting particle weights 2010-04-27 09:54:36 +00:00
Ton Roosendaal
cbe55dc66b Text button with search icon now updates "live", like in outliner. 2010-04-27 09:07:26 +00:00
Campbell Barton
e40531991d fixes for euler order setting when the rotation mode is not euler. 2010-04-27 07:50:31 +00:00
Campbell Barton
5e2a9770f5 bugfix [#22163] Add->mesh->torus is broken
recent commit broke this, missed changing double to float.
2010-04-26 21:25:14 +00:00
Campbell Barton
6bb55fd93e py/rna, euler objects order is now wrapped correctly...
eg:
 eul = bpy.context.object.rotation_euler
 eul.order = 'XZY' # will update the objects setting.
2010-04-26 21:04:42 +00:00
Daniel Genrich
523b95898b Add missing null check solving crash on texture panel, also fix possible 'freeing NULL' because of misplaced MEM_freeN() in that context. 2010-04-26 20:30:13 +00:00
Brecht Van Lommel
a547e91d41 Two bugfixes from the render branch:
* Fix for FSA update while rendering fix, should set float rect to NULL.
* Fix for irradiance cache mutex unlock that got lost in code changes.
2010-04-26 12:50:48 +00:00
Joshua Leung
f39163acd7 Outliner Filtering Bugfix:
Campbell's changes to make this use fnmatch by default had the case-sensitivity setting inverted. This meant that convenient searches in lowercase were no longer possible by default.
2010-04-26 10:31:09 +00:00
Brecht Van Lommel
b757e5c944 Fix #22086 and #22125: crashes due to editmode being set on load/undo, fixes
are simple enough, though may still revert this feature if it turns out there
are more problems.
2010-04-26 10:12:03 +00:00
Joshua Leung
2785bc1aef Proper fix for the Grease Pencil drawing options 2010-04-26 10:02:30 +00:00
Daniel Salazar
1542b15a07 Cleanup of grease pencil UI. Ali can you check if what I did in
gpencil_buttons.c is ok? it was graying out two buttons that shoudn't
have
2010-04-26 08:05:04 +00:00
Joshua Leung
4980e43dd1 Assorted code cleanups:
* Removed some un-needed armature code stubs
* Manually copying over the values of constraints in the constraint copy() callbacks should NOT be needed. Removed this from the Spline IK constraint. The manual process is only a hacky aspect of the modifier stack only!
2010-04-26 06:35:25 +00:00
Joshua Leung
b5d28306d0 Bugfix [#22069] Speed-Ipos are not imported correctly from 2.49 to 2.5
- IPO-blocks for curves were not getting handled correctly (i.e. no conversion and relinking was taking place) when converting from 2.4x to 2.5
- Old 'speed' IPO's now have their values multiplied by the path length when they are loaded from old 2.4x files so that they work correctly in 2.5. 

Also...
- Cleaned up a few instances of scruffy code formatted in some weird ad-hoc way.
- Debug prints for the start/end of the file conversion process are now all hidden behind debug-only checks. Unless the way the conversions are done is significantly changed at some point, this should be sufficient...
2010-04-26 06:33:04 +00:00
Matt Ebb
7bf3add0a5 Add operator undo flags to text datablock related operators 2010-04-26 04:49:33 +00:00
Matt Ebb
f85fe4d633 Pass constraint names as operator properties in constraint operators
This is similar to commit revision 22078, but for constraint operators rather 
than modifiers, making it possible to use them from scripting.
2010-04-26 03:42:38 +00:00
Matt Ebb
47e1f253c5 Fix [#22160] blender 2.5 alpha2 can't open file grass.blend from blenderguru
Textures were being called with multitex_ext with osatex enabled, but NULL derivates.
Fixed this for texture effectors and a couple of other places.
2010-04-26 02:23:13 +00:00
Campbell Barton
4fc4fb9bfb rna/python mathutils module
- return euler rotation values from rna now have correct rotation order.
- mathutils.Euler stored rotation order off by 1. (didnt work at all)
- Euler/Quat/Color sliceing working again.
2010-04-25 23:33:09 +00:00
Campbell Barton
64359c9abc hash function for property-rna. eg. hash(bpy.context.object.modifiers) 2010-04-25 21:13:42 +00:00
Campbell Barton
61eb217294 [#22151] Modifier UI crash
own error when editing context return values. r28401
2010-04-25 19:56:43 +00:00
Campbell Barton
873d4a3f05 py api
- mathutils.Color.hsv attribute. eg. material.diffuse_color.hsv = 0.2, 0.8, 0.4
- Vector/Euler/Quaternion/Color now only take a single seq arg.
- internal function for parsing arrays. (cleanup messy internal list/vector/tuple/seq parsing)
- didnt update rigify yet.
2010-04-25 19:27:59 +00:00
Peter Schlaile
4f6e3dad47 == Sequencer ==
Forgot some changes for multicam support.
2010-04-25 15:39:04 +00:00
Campbell Barton
93f420b666 correct typo's 2010-04-25 15:24:18 +00:00
Campbell Barton
cacd2477c0 bugfix [#22117] Memory Error messages with Spline IK
chainlen was initialized as 0
2010-04-25 13:27:52 +00:00
Peter Schlaile
a92b8b7ff6 == Sequencer ==
This adds MULTICAM-editing support for blender. (Well, the beginning of.)

There is now a new effect track, named MULTICAM, which just selects
one of the lower tracks.

Doesn't sound that exciting, but if you combine this with A/B-Trim (moving
split points of two directly connected tracks around, while magically
resizing both strips, something to be added), you just do:

* add several tracks for your camera angles
* (optionally) sync those tracks
* add one multicam track on top

Use that multicam-track to edit your movie. (Either using fcurves on the
multicam source selector or using knife-tool and A/B-Trim.)

Compare that to:

* add several tracks
* add cross fades between them
* do some python scripting to add several fcurves to make that beast
  somewhat work.
* cry out loud, using it, if you have to move cut points around

Alternatively, even harder:

* just edit the old way and put strip after strip

You might think, that this isn't really helpfull for animators, but
consider using scene-strips (in OpenGL-mode) for input, that are set for
different camera angles and can now be intercut a lot more easily...

Also: small fix on the way: the speed effect can now be used in cascade.
(Don't know, if anyone used it that way, but now it works.)
2010-04-25 12:53:39 +00:00
Brecht Van Lommel
3f12beb4d0 Fix #22123 and #22124: some problems with mutex locks, also tweak to
how removing opengl textures from outside main thread is done so it
happens as part of the main loop.
2010-04-25 10:49:13 +00:00
Brecht Van Lommel
6c3317612e Mesh Deform Modifier: fix problem with saving. 2010-04-25 10:27:45 +00:00
Campbell Barton
708667c6f6 minor mathutils update
- docstring for Euler.rotate
- rotate_eul, use upper case in Py and C. 
- use less verbose repr method.
2010-04-25 03:34:16 +00:00
Campbell Barton
b37ae4a375 re-arrange modifier and blenkernel to overcome some linking problems that stopped modifiers being able to build when using some blender-kernel defined stuff 2010-04-25 01:10:03 +00:00
Campbell Barton
2cec60e2eb fix for a library linking problem where a proxy object linked into a blend would cause the proxy, driver's ID to be directly linked as well.
eg. character.blend -> anim.blend -> comp.blend
... Would link the character.blend directly into comp.blend because on driver ID's.

In this case id_lib_extern doenst need to be called because the object its linked from is a library.
2010-04-25 00:19:10 +00:00
Guillermo S. Romero
d0328d6702 Remove duplicated "modifiers". 2010-04-24 22:34:18 +00:00
Campbell Barton
265d76a533 fix for crash reading console history. 2010-04-24 21:14:05 +00:00
Campbell Barton
4bd3163ea6 py api: fix for context returning None for an empty list such as 'context.selected_objects', now returns [] 2010-04-24 19:26:05 +00:00
Martin Poirier
b31e9b764e [#21218] Strange Extrude bug...
Hide Extrude Type property (it's not supposed to be changed manually).
2010-04-24 18:11:28 +00:00
Joerg Mueller
5b4e62a977 Fix for #22135, loading ffmpeg now before .B25.blend is loaded. 2010-04-24 16:35:16 +00:00
Ton Roosendaal
87d30fdd24 Makefile fix: new modifiers directory had to be compiled too. 2010-04-24 12:37:17 +00:00
Campbell Barton
ace1c998c4 warning cleanup, also made voxel.c and volumetric.c use BM_INLINE define rather then having their own ifdefs in each file. 2010-04-24 10:08:07 +00:00
Campbell Barton
39c0e690d3 sub_v3_v3v3 --> sub_v3_v3 (where possible) 2010-04-23 23:57:00 +00:00
Campbell Barton
394537715d string number decoding didnt check for win32 slash & minor adjustments to some other path funcs (no functional change). 2010-04-23 23:01:50 +00:00
Dalai Felinto
edc56fae18 BGE Fix: [#19951] mouse over sensor is broken with letterboxing framing
Tested with GameLogic.mouse.position and mouse over sensor.
It should be working with other mouse sensor as well. If not, please help to test and report a bug.
(couldn't test blenderplayer but it should be working there as well).

(Benoit, this is the same patch that I sent you. I hope it's OOP enough. Looking forward to hear from you on that)

I believe that this was the last "mouse" related bug we had reported. MouseLoook scripts should be working 100% in Blender/BGE 2.50 now \o/
2010-04-23 22:48:26 +00:00
Campbell Barton
62c0ac2dc9 unix style outliner name wildcards *.*, Any.???, etc (using fnmatch), also removed last beos reference :) 2010-04-23 22:08:11 +00:00
Tom Musgrove
28e8c04795 patch by by xat "Partial fix for bug #22142" 2010-04-23 20:05:16 +00:00
Brecht Van Lommel
23ad9588ad Some fixes from the render branch:
* Take border render into account when drawing grid before for render
  result becomes visible.
* Use antialiasing for rendering icon previews.
* Fix Full Sample not drawing render result while rendering.
* Mesh Deform Modifier: also forgot to commit this file.
2010-04-23 18:02:50 +00:00
Joshua Leung
877e855ca5 Quick fix, just in case the mesh has no vertex groups, there won't be a crash! 2010-04-23 12:15:50 +00:00
Joshua Leung
6a56b0d844 Bugfix #22101: Envelopes dont respect armature modifier vertex group mask
Changed the point where the vertex groups are retrieved. Hopefully this commit doesn't break any cases I haven't thought of...
2010-04-23 12:11:56 +00:00
Campbell Barton
4a51b140cd always print reports immediately when running in background mode. 2010-04-23 11:48:17 +00:00
Brecht Van Lommel
08775e8f14 Mesh Deform Modifier: compress static binding weights better, threshold
is still set very low so in many cases it could be even smaller, but being
a bit conservative here to try to avoid breaking rigs.

This is not forward-compatible, i.e. loading new files in older blender
versions will loose the binding.
2010-04-23 11:19:06 +00:00
Campbell Barton
d43bef938f svn merge https://svn.blender.org/svnroot/bf-blender/branches/render25 -r28371:28372
console history save/load from joe
2010-04-23 09:24:22 +00:00
Campbell Barton
0429707e6c fix for camera switching, broke 28359 2010-04-23 08:39:10 +00:00
Matt Ebb
320408ff12 Tweaks to Render Layers panel
'Mask layers' should be visible always, they still work to mask out objects on 
layers when zmask isn't on (zmask is slightly different.. a bit confusing)

Icon tweaks too
2010-04-23 06:33:30 +00:00
Joshua Leung
ce9d5c43e2 Spline IK - Influence Control
Made the 'Influence' slider work for Spline IK too, and made that setting visible now that it works. 

Note that there is still some popping that can occur when going to/from influence = 0.0. I'm not sure exactly what's causing this yet, but hopefully it won't be too noticeable in practice.
2010-04-23 05:14:00 +00:00
Joshua Leung
967c2d55f7 Improved the Outliner live-search so that in the default scene, doing a simple search for "cu" (to show the default cube only) will show the matching item.
Previously, because the 'Scene' item is encountered first, all sub-items like this would be ignored. Now, when a non-matching item is encountered, it's subtree is checked as per normal, as long as the item was expanded (so that its subtree is still visible).
2010-04-23 04:16:08 +00:00