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
AgeCommit message (Collapse)Author
2011-02-13enforce string limits (reported by pedantic checking tools & some developers).Campbell Barton
mostly replace strcpy with BLI_strncpy and multiple strcat's with a BLI_snprintf(). also fix possible crash if CWD isnt available.
2011-02-12fix for more warnings.Campbell Barton
- modifier code was using sizeof() without knowing the sizeof the array when clearing the modifier type array. - use BLI_snprintf rather then sprintf where the size of the string is known. - particle drawing code kept a reference to stack float values (not a problem at the moment but would crash if accessed later).
2011-02-08minor edits, no functional changes.Campbell Barton
- BGE was getting MCol array and not using it. - use list lookup functions for getting constraint from pose bone. - use const char * in more places.
2011-02-07Todo/feature requestTon Roosendaal
When using masks or other simple 3D elements in composites, doing a layer re-rendering on a node is a bit clumsy all the time. This commit does two things to help: - new hotkey "Z" in node editor automatically finds render layer that changed and re-renders it + composites - option "Auto Render" does same, but then after every transform edit in 3D window The latter is experimental; real & proper system for this requires full threaded render support (like previews). But it works! Demo file: http://download.blender.org/demo/test/auto_composite.blend Important fix: After any render, all the render layers were tagged "changed", which caused any edit to first totally recomposte everthing. Now it only composites changes. Implementation notes - DAG scene flush now sets 'changed' flags in render layer nodes - Added notifier for 'transform finished' to trigger the update, this is temporarily.
2011-02-05Bugfix, own todoTon Roosendaal
Saving a file for the first time (after opening blender) didn't use the last directory as saved/loaded from in a previous session.
2011-02-01Script to test import operators, so a single command can execute an operator ↵Campbell Barton
on all files in a directory and optionally save out blend files for inspection. This comes in handy for testing importers against 100's of files, quickly showing breakages and easier to setup then unit tests. Example usage: blender.bin --background --python source/tests/batch_import.py -- \ --operator="bpy.ops.import_scene.obj" \ --path="/data/testfiles/obj" \ --match="*.obj" \ --start=0 --end=50 \ --save_path="/tmp/test" Also found my name was spelt wrong in some places :)
2011-02-01fix for 2 segfaults running in background mode.Campbell Barton
- operators which reload G.main would crash blender if called from python and then accessed bpy.data.* - WM_read_homefile_exec was setting the contexts Scene to NULL as a signal for the event system, this didnt work in background mode, crashing when property update functions expected scene to be set.
2011-01-30remove nan-makefilesCampbell Barton
2011-01-25use cmake defined names for jpeg, png, zlib and python libs, building on ↵Campbell Barton
*nix with non-standard libjpeg/png/zlib locations was broken. in the case of python this makes it easier to move to find_package(PythonLibs) when 3.x is supported.
2011-01-22Small fix from the todo:Ton Roosendaal
"Modal cursors" now remain visible, until reset. These cursors were reset already on edges. Example: 3d view toolbar, grease pencil. Do note, only use WM_cursor_modal() on real modal tools, and restore it at end.
2011-01-20don't set the path to ~/untitled.blend on initializing the WM, this isn't ↵Campbell Barton
well defined how this behavior should work, existing behavior was inconsistent since loading a new file would set the path to "".
2011-01-19Bugfix #25613Ton Roosendaal
Dropping file in Blender from pre 2.5 period caused eternal loop loading .blend files :)
2011-01-19Bugfix #25652Ton Roosendaal
Report was that move-to-layer menu failed. The real cause was more complex; had to dive deep in the dungeons of the interface code that handled undos and operators. Found several issues: - popup menus (like redo operator, color picker) executed again on a mouse-exit - far too many buttons were sending undo pushes; even worse, in the operator redo-panel each button action was pushed twice - in case operator redo-buttons have own callbacks (like layer buttons) the redo wasn't working - layerbutton menu was called without creating a proper undo/redo case Things should all work smoother now! On todo: - better definition and handling of all versions for operator menus (four types now, not fun) also: make operator "do" menu, which on first action does operator and then switches to redo-ing - bring back Undo menu, to list the undo stack and jump in it.
2011-01-19new command line option '--factory-startup' to skip reading startup.blend. ↵Campbell Barton
useful for testing with a predictable environment. also commented python benchmark prints on exit, can enable when profiling later.
2011-01-15error in last commit, also skip getting vars for wm_operator_reports() when ↵Campbell Barton
there are no reports.
2011-01-13remove/comment unused varsCampbell Barton
also removed unnecessary NULL checks (where the pointer was used later without checking).
2011-01-12Bugfix #25570Ton Roosendaal
The tool-redo depends on a working undo system, so it can rewind a step and then redo operator with new settings. When a user disables undo, this won't work. Now the properties for redo operator (toolbar, F6) will grey out when a redo isn't possible.
2011-01-12remove redundant assignments & unused vars.Campbell Barton
also minor functional changes - OBJECT_OT_make_links_data() type property is now assigned to the operator property (so popup menu can find it) - removing BG image now returns cancelled if no image is removed.
2011-01-09rename BKE_assert() --> BLI_assert().Campbell Barton
2011-01-08remove unused code & variables.Campbell Barton
2011-01-07remove references to BKE_utildefines where its not needed.Campbell Barton
- move GS() define into DNA_ID.h - add BLI_utildefines as an automatic include with makesrna generated files.
2011-01-07split BKE_utildefines.h, now it only has blender specific defines like GS() ↵Campbell Barton
MAKE_ID, FILE_MAXDIR, moved the generic defines to BLI_utildefines.h. no functional changes.
2011-01-07patch [#25490] Fix for [#22096] Blender tries to open non-blend fileCampbell Barton
from Alexander Kuznetsov (alexk) with edits. From the report: Blender assumed that all files are .blend as retval = 0; Now retval is initialized as file cannot be open (-1) for gzopen fail and directory case retval = -2; is defined for not supported formats This must be assigned before #ifdef WITH_PYTHON because this part can be missing Finally retval = 0; if it is a .blend file --- also made other edits. - exotic.c's blend header checking was sloppy, didn't check data was actually read, only checked first 4 bytes and had a check for "blend.gz" extension which is unnecessary. - use defines to help readability for BKE_read_exotic & BKE_read_file return values. - no need to check for a NULL pointer before calling BKE_reportf(). (will just print to the console) - print better reports when the file fails to load.
2011-01-05Patch: [#22524] Update Windows Recent Documents on Open/SaveAndrea Weikert
Slightly modified to better fit in architecture (moved to related GHOST SystemPaths) Thanks to Harley Acheson for the research and for providing the original patch. Note: I added empty function for X11(Linux) and Mac (Carbon and Cocoa) to be implemented still.
2011-01-05ToDo: long outstanding patch to allow access to system paths in background modeAndrea Weikert
Thanks Damien Plisson for contributing the Carbon and Cocoa implementation
2011-01-05edits for BPY_extern.h functions, no functional changesCampbell Barton
- remove unused code. - BPY_run_python_script() split in 2, BPY_filepath_exec, BPY_text_exec - renamed funcs.
2011-01-05Removed a call to glPopMatrix that had no corresponding glPushMatrix.Nicholas Bishop
2011-01-04Todo item:Ton Roosendaal
New option to start threaded wmJobs, with flag WM_JOB_SUSPEND. This makes the job wait 1 timer step before running. Used now for Material Icon render renders, which makes the big preview to be always rendered first while using UI.
2011-01-04Todo items:Ton Roosendaal
- File Window: when opened with operator (save, load, etc), you couldn't start a new one, causing memleaks. Now it nicely refreshes file window for new operator. Also means you can make CTRL+F3 screenies of filewindow now. - CTRL+F3 screenshot had memleak on cancel.
2011-01-03Todo itemTon Roosendaal
Drag/drop now has a User preset for dragging threshold. Noticed this was set to 3 pixels even, made it 5 as default. Tablet owners can put it larger too :) Note: the tweak-threshold (3d win) is 10 pixels now, I think this needs another preset too, leave this for now. Also: fixed crash in filewindow: drag .blend icon and drop it. You can't test anything in Blender or you get a bug :)
2011-01-03Bugfix #25457Ton Roosendaal
After loading file, the Undo-push happened too early, causing an undo for the first action to show animated setups wrong. (material.c: removed old crap)
2011-01-02Bugfix #25446 (and todo item)Ton Roosendaal
The icons for materials were always lagging or not updating at all. I also found it suspicious slow... It appeared that the icons now store a "mip level", where for every change in Materials 2 render jobs for icons were started, one for 32x32 pix, one for 96x96. The latter was cancelling out the first job almost always. Also made preview renders detect size, to set amount of tiles to be rendered. Small icons use 1 part, larger previews 16 now. All in all, behaves much smoother now! But, will also update the thread Jobs manager to allow "delayed jobs" like for icons, these are aggressively put as first in the jobs list.
2011-01-02- correct typos in comments.Campbell Barton
- move boxpack struct out of the public header.
2010-12-30Porting URL fixes for Release Logs from Tag to Trunk. Thomas Dinges
2010-12-27Small fixes:Ton Roosendaal
- OpenGL still render failed when output format was set to Movie. Now it just doesn't save a file and renders anyway. - Bone heat weight was missing 'wait cursor'. - Waitcursor for Mac Cocoa is back! Made all OS's use the same nice hourglass cursor. (Note: this violates Mac UI guidelines, we should rely on the spinning wheel of death instead. Highly disputable that.)
2010-12-24presets for operators, re-using same preset system as render, cloth etc use.Campbell Barton
- operators need to enable the option OPTYPE_PRESET or 'PRESET' in python. - hidden properties are not written. - currently this only works in the file selector (enabled for FBX/OBJ export) - currently the menu label doesnt change when presets are selected, this is a TODO, not so simple since the UI is defined in C and the label in python. - presets save in "scripts/presets/operators/*id*/*.py"
2010-12-23Customdata mask recode caused crashes, sloppy work here, but probablyTon Roosendaal
caused by Campbell using too much Python. In C code you really need { and } for multiline if's. :)
2010-12-23Bug #25354Ton Roosendaal
In some cases, a LMB-drag was drawing a stippled line. Leftover of WIP code for support of gestures in Blender. Disabled drawing for now, until gestures is back in control.
2010-12-23Fix for multiple modifier stack calculations per frame.Campbell Barton
Since 2.5x blender has been using CD_MASK_BAREMESH for updating objects since object_handle_update() no longer has access to G.curscreen to calculate the mask from viewports. The problem with this is after an initial calculation, CD_MASK_MTFACE may be required on draw, so it would recalculate the modifier stack multiple times per frame. One case which caused this is armature animated mesh with texface in a dupligroup. Fix this by having customdata_mask member in the scene, this isn't great design but at least fixes the bug and only changes a few files.
2010-12-23use ICON_NULL define rather then 0, makes UI calls less confusing. (no ↵Campbell Barton
functional change) eg: uiItemR(row, &dvar_ptr, "type", 0, "", 0); -> uiItemR(row, &dvar_ptr, "type", 0, "", ICON_NULL);
2010-12-23rename blenderlib to blender_add_libCampbell Barton
2010-12-22Complement of commit 33789: Fix for [#25175] bge.logic.mouse.position[1] ↵Dalai Felinto
wrong when using autostart Porting the fix when Fullscreen flag is on (~ scene.gm->fullscreen) I still see some issues with that, a difference between width/height. To be addressed later.
2010-12-21rename addlisttolist() to BLI_movelisttolist()Campbell Barton
name was misleading because the list items were removed from the source list. (no functional changes)
2010-12-21Macro Operators now pass on reports to the Mother Op!Ton Roosendaal
(errors for macros were not shown)
2010-12-19Fix for [#25175] bge.logic.mouse.position[1] wrong when using autostartJoerg Mueller
2010-12-17Drag & drop feature:Ton Roosendaal
You now can drop a .blend inside blender window to open it. Implementation notes: - Added call to extract icon type for files. Code re-used from space_file - External files that get dropped set icon types too. Drop box polls can check for this. - Also enabled setting op-context for drop operators, this was needed to prevent filewindow to open.
2010-12-16bugfix [#25208] randomize transform doesn't work on objects with keyframesCampbell Barton
Surprising this wasnt noticed in a much more obvious case: - Key Location, Move, Rotate, Undo-Rotate >> Resets to keyed location as well. This was happening because DAG_on_load_update() was called on read_undosave(), flagging 'ob->adt->recalc |= ADT_RECALC_ANIM;' Fix by adding an option to DAG_on_load_update(), not to recalculate time flags.
2010-12-16Annoyance fix:Ton Roosendaal
Using scrollwheel on properties window halted when it was over a list-button. Now it disables handling wheel events when you use scrollwheel outside of lists first. Implementation note: UI event handlers have priority over other keymaps. That's OK. In this case it's simple conflict, for which no design solution exists... wouldn't know how to do this nicer! Code is nice local and can be improved when we look into other conflicts...
2010-12-15Bugfix, own collectionTon Roosendaal
Using RMB on menus to change hotkeys was broken. - the input button was on a weird place outside menu, assign would close pulldown, so you had to reopen to check - ESC didn't close the button, but assigned ESC as hotkey. This key is a protected key, and always should be escaping. - Worst bug: if you used this on a 'user keymap' it removed all entries from the map...
2010-12-15change the cursor bounds to only use the Area if the mouse is outside the ↵Campbell Barton
region or the region is not a WINDOW type.