Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
AgeCommit message (Collapse)Author
2008-07-30BGE patch: logic optimization part 2: remove inactive sensors from logic ↵Benoit Bolsee
manager. With this patch, only sensors that are connected to active states are actually registered in the logic manager. Inactive sensors won't take any CPU, especially the Radar and Near sensors that use a physical object for the detection: these objects are removed from the physics engine. To take advantage of this optimization patch, you need to define very light idle state when the objects are inactive: make them transparent, suspend the physics, keep few sensors active (e,g a message sensor to wake up), etc.
2008-07-30Bugfixes: fix for two memory leaks related to dupligroups,Brecht Van Lommel
and a missing reference count in the trackto actuator. This showed up as leaked pose data, but actually the whole object was not being freed.
2008-07-30Bugfix for mesh deformer under windows --> uninitialized variable was used ↵Daniel Genrich
in meshdeform_inside_cage()
2008-07-30Grease Pencil Bugfixes:Joshua Leung
* Segfaults with eraser should now be fixed * Attempted fixed for sequencer redraw problems with buttons
2008-07-30== Grease Pencil - Eraser (First Draft) ==Joshua Leung
This commit introduces the ability to erase strokes. Admittedly, the code for this is not totally stable yet, and doesn't always produce optimum results. I'm committing now for backup purposes. It currently uses the lasso code to check whether segments of the strokes (a segment occurs between two recorded points) occur inside a region defined by the 'eraser' stroke, or any intersections it makes with the 'eraser' stroke. There are multiple ways to erase strokes: * With 'Draw Mode' on, use RMB-drag to erase * With a tablet, use the 'eraser' end of the stylus * Hold the Alt Key, and use the 'selection' mouse-button (i.e. LMB if mouse-button swapping is on, RMB otherwise) to erase. For this one, this is necessary to avoid overriding the view-rotation hotkey combo for 2-button mice! Todo: * 3d-strokes are not correctly mapped back to screen-space for sampling yet * Drawing of eraser strokes is still not distinctive enough * After running a few times, may cause stack corruption/segfaults, so be careful! == Bugfixes == * Grease-Pencil Onion-Skinning works again. Onionskining was being supplied the wrong frames, and the alpha factor was still the old one used for 0-255 ranged colour values
2008-07-30Simple changes to Motion Actuator UI.Mal Duffin
This includes... - Renaming dLoc and dRot as Loc and Rot ( as well as changing the tooltip to location and rotation ). dLoc and dRot are programming terms, not user terms. - Placing Loc and Rot as the two initial shown values, so that the physical ones are all shown together. I also changed it so that only Loc and Rot are shown in the UI, unless the object is Dynamic ( as the other values only make sense if it is dynamic ). These are just a few simple changes, that should make a lot of difference to users when learning how to use the GE. -------------------------------------- Things I'd *really* like to do to this, when I get a chance to code Blender again ( hopefully in a few days time, after I have finished teaching on the GE course )... Color / Colour tint the X,Y and Z entry boxes as slightly red, green and blue, to reflect the colour of the axis / transform gizmo ...or... Just show X,Y and Z labels above all of the values. Getting to grips with the whole XYZ thing is very confusing for users, esp when they are presented with 6 x 3 entry boxes.
2008-07-30* making sure BGE compiles after brecht's big commit (r15867). Needed ↵Nathan Letwory
<algorithm> to compile with msvc.
2008-07-30Copy Attributes now has option to copy all physical attributes.Mal Duffin
There existed two options to copy only the mass, and only the damping, but no option to copy all of the physical attributes. This patch adds in this option, right under the Mass and Damping listings.
2008-07-30Am teaching a GE course this week, and am finding some small issues that I'm ↵Mal Duffin
hoping to patch. This one deals with the very small default clipend value ( 100.0 ) when pressing P to run the GE from a non-camera view. ( ie if the user zooms out a bit from the default box area, the box will get clipped out of view, so it's a WFT from the user ) To see what this fixes, load up Blender default scene, go into perspective, and press P. Everything looks grand. Now, zoom out until the box is about 10 pixels high, and press P again. The box will disappear / be clipped out. I've set the clip end to the maximum ( 5000 ) as defined in Camera.h. This should be suitable for inclusion in 2.47 branch also.
2008-07-29No long needed here (win64 cleanup)Daniel Genrich
2008-07-29Game Engine: alpha blending and sortingBrecht Van Lommel
======================================= Alpha blending + sorting was revised, to fix bugs and get it to work more predictable. * A new per texture face "Sort" setting defines if the face is alpha sorted or not, instead of abusing the "ZTransp" setting as it did before. * Existing files are converted to hopefully match the old behavior as much as possible with a version patch. * On new meshes the Sort flag is disabled by the default, to avoid unexpected and hard to find slowdowns. * Alpha sorting for faces was incredibly slow. Sorting faces in a mesh with 600 faces lowered the framerate from 200 to 70 fps in my test.. the sorting there case goes about 15x faster now, but it is still advised to use Clip Alpha if possible instead of regular Alpha. * There still various limitations in the alpha sorting code, I've added some comments to the code about this. Some docs at the bottom of the page: http://www.blender.org/development/current-projects/changes-since-246/realtime-glsl-materials/ Merged some fixes from the apricot branch, most important change is that tangents are now exactly the same as the rest of Blender, instead of being computed in the game engine with a different algorithm. Also, the subversion was bumped to 1.
2008-07-29BGE patch: fix support of group hidden layer in dupli group instantiation: ↵Benoit Bolsee
only the objects in layers matching the group layer mask will be instantiated. This is equivalent to the 3D view
2008-07-29Bugfix for #17396. Adding a text object would segfault when using freetypeKen Hughes
2.3.6 or later. Thanks to Cyril Brulebois for a one-line patch, which was sent to the ML a while back.
2008-07-28Bugfix: game engine does not support non-camera type objects as aBrecht Van Lommel
camera, would crash, so disabled using the object as a camera then.
2008-07-28Bugfix: Joshua Leung
Bone-locking should only be set if the bone (and not its parent/children) are selected. Transposition error from the patch (I had to manually apply as there were some oddities about the patch file).
2008-07-28* Fix for Aligorith's fix for my mistaken uninitialised variable in ↵Matt Ebb
outliner.c - it was never needed in the first place.
2008-07-27#17309: Copy/pasting bone names (without editing text) doesn't update ↵Joshua Leung
bone/pose names The pasting code for text-buttons (when hovering over the button), was incorrectly using the drawstr (i.e. the string that is displayed in the text-button, and includes the 'name' of the button) as the old value. This meant that the renaming code could not correctly detect matches to rename.
2008-07-27Bugfix #17334:Joshua Leung
This bug-report revealed a critical error made in the menus for Constraints Owner/Target spaces. It seems that the wrong values have been used for 'pose space' and 'local with parent' space. This has now been rectified, so that old rigs won't break (just that the labels will be a bit different).
2008-07-27Outliner.c: Joshua Leung
Fixed some warnings about 'ob' being used uninitialsed. In some places that was definitely the case!
2008-07-27Grease-Pencil:Joshua Leung
* UI - added delete button for hidden layers * Renamed the two hardcoded defines added for testing distances to their more formal nomenclature.
2008-07-27Patch #17336: Lock bones in edit modeJoshua Leung
Submitted by: Lorenzo Pierfederici (lento) This patch adds the ability to lock transformation on bones in edit mode, to protect them from accidental editing. Bones can be locked from the editing buttons, the transform property panel, the specials popup menu or the python api.
2008-07-27== Pose Mode - Copy Menu (Ctrl C) ==Joshua Leung
This now works even when there is a proxy-protected bone selected with a few differences. * The Transform Locks, IK-Flags, and Custom Bone Shape settings are unavailable, as they would be reset by the proxy protection anyway Also, the Copy Constraints options have been altered so that they do NOT free all existing constraints on the target bones before copying. * Constraints are now appended to the end of the constraint stacks, with those added to bones belonging on proxy protected layers getting tagged as 'local' constraints. * This is more useful for riggers than the previous behaviour (which was quite nasty too).
2008-07-27== Python scriptlinks ==Willian Padovani Germano
Render/postrender events were missing from bg rendering (and also from rendering called inside scripts). Found this because of bug #17389, the code to prevent race conditions with pynodes is currently inside BPY_do_all_scripts (that runs scriptlinks) and so was not being called in bg mode or rendering via scripts. http://projects.blender.org/tracker/?func=detail&atid=125&aid=17389&group_id=9
2008-07-26== Grease Pencil - Drawing (User Action not Display) Accuracy ==Joshua Leung
This commit attempts to fix some of the problems with the accuracy of strokes recorded. I've disabled the post-draw smoothing of strokes as it deviated from the source stroke too much. This was introduced to try to eliminate the effects of fine 'jitter' (which is especially noticable when using optical mice + fast computer). Now, I've introduced two thresholds which determine the 'minimum' distances that the mouse needs to have moved from the previous mouse-coordinates recorded, to be recorded. These are currently hardcoded, but may be exposed in the UI if there is significant need to do so. - The first is for the distance that the mouse must have moved on both axes to be considered. - The second is for the 'pythagorean' distance that needs to have been travelled by the mouse.
2008-07-26BGE patch: support runtime duplication of groups. Adding an object with ↵Benoit Bolsee
Dupligroup option set will cause the group to be instantiated. No special actuator is needed for this feature, just put dupligroup objects in inactive layers and add them dynamically
2008-07-26== Sequencer ==Peter Schlaile
Fixes: [#17347] Scaling problems when "Use Translate" is enabled for image strip
2008-07-26== Sequencer ==Peter Schlaile
since clear_last_seq replaces set_last_seq in kernel, removed unneeded bad_level_call.
2008-07-26Two fixes:Joshua Leung
* For constraint mesh-targets, the check for whether the target mesh was in EditMode didn't check to see if the target mesh was the mesh in EditMode. Thanks jaguarandi for catching that! * Bumped up size of buffer for grease-pencil drawing after seeing a program written in 1989 that had a 100 times larger buffer
2008-07-26rolling back 'bad' wind and force scaling compared to particles .. Jens Ole Wund
because i have no solution on backward compatibility keeping bug fix -wind and force did not work if aero or edge collision was activated.
2008-07-26== PyNodes ==Willian Padovani Germano
Early Ehlinger reported a deadlock when a script tells Blender to render an animation and there are pynodes. While investigating I saw related crashes in bg (blender -b) mode, still not fixed. This commit tries to fix the problem for interactive mode, then. What it does is releasing the lock before rendering and relocking after that, like theeth suggests in the bug report: http://projects.blender.org/tracker/?func=detail&atid=125&aid=17389&group_id=9
2008-07-26added exception messages to game engine matrix and vector conversions. also ↵Campbell Barton
removed own unneeded defines in arithb.c
2008-07-25BGE patch: approve patch #17312: Multiple material IPOs per mesh in BGE.Benoit Bolsee
2008-07-25BGE bug fix: approve patch #17297: Track To Actuator bug fixBenoit Bolsee
2008-07-25* make sure blenderplayer links againNathan Letwory
2008-07-25Grease Pencil - Backend work:Joshua Leung
Just preparation work for an eraser tool (as well as the code of a failed attempt at an implementation).
2008-07-25* Fix for bug #9450 'Problems with Extended Material node with AmbCol socket'Matt Ebb
It turns out the material AmbCol property was never working properly, or even supported in the renderer, so I've removed it. Also included is a fix to make the 'Amb' input work properly too.
2008-07-24added note to epydocs explaining the nature of floats in id properties from ↵Joseph Eagar
the python point of view
2008-07-24added support for doubles to the id property code, and made the python code ↵Joseph Eagar
use them by default
2008-07-24soft body bug fix own findingJens Ole Wund
left overs from new particles -wind and force did not work if aero or edge collision was activated. -force field had flipped sign compared to particles tsk who thinks a attractive force should negative sign? well... i am passionless with that. -adapted effect of wind and fields on softbodies such that softbody "particles" and particle "particles" behave consistently note! effect of wind is 1/25 compared to before other forces 1/10
2008-07-24== Grease Pencil - More Tweaks (I) ==Joshua Leung
New Stuff: * Alt-XKEY / Alt-DelKey will now activate the Grease Pencil "Erase" menu. This will only show up when it's relevant (i.e. when there exists Grease Pencil data). It should make it faster to quickly delete the last stroke made. This hotkey has been added to the tooltips of the relevant buttons. * Finished off colouring of 'active' layers panel so that they are now easily identify-able. This could also be done for Constraints, but the 'active' one isn't that important there. Bugfixes: * Fixed bug with drawing gp-data sources in the Action Editor, which resulted in missing icons. * Fixed buttons in Grease Pencil panel. My hasty attempt last night at making the Action Editor to refresh was causing problems. * Added a (hopefully temporary) button that will be used to prevent drawing from occurring with Shift-LMB. This is useful when trying to select stuff sometimes, with LMB as select-button, especially when selecting a bunch of closely spaced bones might be interpreted as a new stroke.
2008-07-24* Added the ability to toggle visibility/renderability for bones in edit ↵Matt Ebb
mode or pose mode, in the outliner
2008-07-24* Added the ability to toggle visibility/renderability for modifiers, from ↵Matt Ebb
the outliner
2008-07-24* A bit more precision in the bevel mod 'width' fieldMatt Ebb
2008-07-24BGE patch: Add PyDoc for new logic bricks, set exception message on Py ↵Benoit Bolsee
error, remove args on Py functions that don't take any to save CPU time
2008-07-23Added NodeUpdateGS so GameObject Python api alignAxisToVect function,Campbell Barton
Otherwise the rotation isn't applied.
2008-07-23== Grease Pencil - UI Improvements ==Joshua Leung
Based on user feedback, I've made some changes to the Grease Pencil UI (most notably in 'Time Editing' facilities). * 'Edit Timing' button gone * Pin button and '<Grease Pencil Data' string gone from Action Editor * Action Editor in 'Grease Pencil' mode now displays all grease-pencil datablocks for current screen. * AE: GP-Datablocks are drawn like 'groups', with an expand/collapse button to show/hide layers. Its name shows the type of space it comes from, and shows indicative status info (i.e. for 3d-view, it shows view-angle) * Added refresh calls for action editor after editing relevant data. I haven't tested all tools yet, but most should be stable. Also, I've removed some unnecessary buttons, and added a few tooltips. There's also some experimental code to try to get clearer indication of 'active' layer.
2008-07-23== Sequencer ==Peter Schlaile
Fixes: [#17315] Sequencer: after undo there's no active object closes: [#17357] fix for bug #17315 - Sequencer: after undo there's no active object (kiemdoder: thanks for the patch, had to do it in a little bit different way, since sort_seq will kill your sort order idea...)
2008-07-23Updated some out of date documentation of Object Ipo curve namesMatt Ebb
2008-07-23BGE patch: Add min/max parameters to orientation constraint actuatorBenoit Bolsee
The min/max parameters define a minimum/maximum angle that the object axis can have with the reference direction without being constrainted. The angle is expressed in degree and is limited to 0-180 range. The min/max parameters define a conical free zone around the reference direction. If the object axis is outside that free zone, the actuator will tend to put it back using as a temporary reference direction the vector that is exactly at min or max degree of the reference direction (depending if the axis angle is below the minimum or above the maximum) and is located in the plane formed by the axis and the reference direction. With a low damping value, this is equivalent to clamping the axis orientation within min/max degree of the reference direction. Backward compatibility corresponds to the absence of free zone: min = max = 0.
2008-07-22BGE patch: update KX_GameObject::getChildren() to use CListValue instead of ↵Benoit Bolsee
python list (allows name search keep refcount consistent)