Cleanup: format
This commit is contained in:
parent
393d4a6e14
commit
e7f88c1050
@ -54,8 +54,7 @@ ccl_device float3 background_map_sample(KernelGlobals kg, float2 rand, ccl_priva
|
||||
int middle = first + step;
|
||||
|
||||
if (kernel_data_fetch(light_background_conditional_cdf, index_v * cdf_width + middle).y <
|
||||
rand.x)
|
||||
{
|
||||
rand.x) {
|
||||
first = middle + 1;
|
||||
count -= step + 1;
|
||||
}
|
||||
|
@ -5,7 +5,8 @@
|
||||
|
||||
namespace blender::offset_indices {
|
||||
|
||||
OffsetIndices<int> accumulate_counts_to_offsets(MutableSpan<int> counts_to_offsets, const int start_offset)
|
||||
OffsetIndices<int> accumulate_counts_to_offsets(MutableSpan<int> counts_to_offsets,
|
||||
const int start_offset)
|
||||
{
|
||||
int offset = start_offset;
|
||||
for (const int i : counts_to_offsets.index_range().drop_back(1)) {
|
||||
|
@ -44,7 +44,8 @@ int BLI_windows_get_executable_dir(char *str)
|
||||
return 1;
|
||||
}
|
||||
|
||||
bool BLI_windows_is_store_install(void) {
|
||||
bool BLI_windows_is_store_install(void)
|
||||
{
|
||||
char install_dir[FILE_MAXDIR];
|
||||
BLI_windows_get_executable_dir(install_dir);
|
||||
return (BLI_strcasestr(install_dir, "\\WindowsApps\\") != NULL);
|
||||
|
@ -237,8 +237,7 @@ static void PREFERENCES_OT_asset_library_remove(wmOperatorType *ot)
|
||||
static bool associate_blend_poll(bContext *C)
|
||||
{
|
||||
#ifdef WIN32
|
||||
if (BLI_windows_is_store_install())
|
||||
{
|
||||
if (BLI_windows_is_store_install()) {
|
||||
CTX_wm_operator_poll_msg_set(C, "Not available for Microsoft Store installations");
|
||||
return false;
|
||||
}
|
||||
@ -253,7 +252,8 @@ static int associate_blend_exec(bContext *UNUSED(C), wmOperator *op)
|
||||
{
|
||||
#ifdef WIN32
|
||||
if (BLI_windows_is_store_install()) {
|
||||
BKE_report(op->reports, RPT_ERROR, "Registration not possible from Microsoft Store installations");
|
||||
BKE_report(
|
||||
op->reports, RPT_ERROR, "Registration not possible from Microsoft Store installations");
|
||||
return OPERATOR_CANCELLED;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user